I am using gSOAP which use openssl.
I establish a connexion to a server using TLS, and I wanted to get the Name
of the Server certificate.
I can access to a X509_STORE trough ctx->cert_store.
But I don't find how to get the Server certificate.

I found the X509_STORE_CTX_get_current_cert(store) method, but to use it I
need a X509_STORE_CTX.
Is it possible to get a X509_STORE_CTX from a X509_STORE ?

Thanks in advance.