Hi,

On Tue, Dec 15, 2015 at 6:24 PM, Jan Just Keijser <janj...@nikhef.nl> wrote:
> ah well, in that case I would simply write out get0_certificate again: the
> code for that function actually is:
>
> 3011 X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx)
> 3012 {
> 3013     if (ctx->cert != NULL)
> 3014         return ctx->cert->key->x509;
> 3015     else
> 3016         return NULL;
> 3017 }
>
>
> and as far as I can tell that "struct-path" is also valid for openssl <
> 1.0.2

Yes that was my first attempt to work around it, but ctx->cert is an
opaque struct cert_st (declared in ssl.h, but defined in ssl_locl.h,
which is not in include/openssl/).

-Steffan

Reply via email to