67 static int ssl_set_cert(
CERT *c,
X509 *x509);
81 return(ssl_set_cert(ssl->
cert,x));
84 #ifndef OPENSSL_NO_STDIO
128 if (x != NULL) X509_free(x);
139 x=d2i_X509(NULL,&d,(
long)len);
151 #ifndef OPENSSL_NO_RSA
176 ret=ssl_set_pkey(ssl->
cert,pkey);
201 #ifndef OPENSSL_NO_RSA
227 #ifndef OPENSSL_NO_RSA
228 #ifndef OPENSSL_NO_STDIO
279 const unsigned char *
p;
283 if ((rsa=d2i_RSAPrivateKey(NULL,&p,(
long)len)) == NULL)
309 ret=ssl_set_pkey(ssl->
cert,pkey);
313 #ifndef OPENSSL_NO_STDIO
364 const unsigned char *
p;
391 return(ssl_set_cert(ctx->
cert, x));
394 static int ssl_set_cert(
CERT *c,
X509 *x)
419 #ifndef OPENSSL_NO_RSA
453 #ifndef OPENSSL_NO_STDIO
497 if (x != NULL) X509_free(x);
508 x=d2i_X509(NULL,&d,(
long)len);
520 #ifndef OPENSSL_NO_RSA
545 ret=ssl_set_pkey(ctx->
cert, pkey);
550 #ifndef OPENSSL_NO_STDIO
601 const unsigned char *
p;
605 if ((rsa=d2i_RSAPrivateKey(NULL,&p,(
long)len)) == NULL)
629 return(ssl_set_pkey(ctx->
cert,pkey));
632 #ifndef OPENSSL_NO_STDIO
684 const unsigned char *
p;
700 #ifndef OPENSSL_NO_STDIO
745 if (ctx->extra_certs != NULL)
748 ctx->extra_certs = NULL;
775 if (x != NULL) X509_free(x);