rt#86819 Add access to openssl's pending attribute on the ssl connection object

This patch is required as part of a fix for rt#86812