Home | History | Annotate | Download | only in ssl

Lines Matching refs:ctx

112 		x=PEM_read_bio_X509(in,NULL,ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_userdata);
256 ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_userdata);
336 ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_userdata);
379 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x)
386 if (!ssl_cert_inst(&ctx->cert))
391 return(ssl_set_cert(ctx->cert, x));
454 int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type)
481 x=PEM_read_bio_X509(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata);
495 ret=SSL_CTX_use_certificate(ctx,x);
503 int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, const unsigned char *d)
515 ret=SSL_CTX_use_certificate(ctx,x);
521 int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa)
531 if (!ssl_cert_inst(&ctx->cert))
545 ret=ssl_set_pkey(ctx->cert, pkey);
551 int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type)
578 ctx->default_passwd_callback,ctx->default_passwd_callback_userdata);
590 ret=SSL_CTX_use_RSAPrivateKey(ctx,rsa);
598 int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d, long len)
611 ret=SSL_CTX_use_RSAPrivateKey(ctx,rsa);
617 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey)
624 if (!ssl_cert_inst(&ctx->cert))
629 return(ssl_set_pkey(ctx->cert,pkey));
633 int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type)
655 ctx->default_passwd_callback,ctx->default_passwd_callback_userdata);
672 ret=SSL_CTX_use_PrivateKey(ctx,pkey);
680 int SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx, const unsigned char *d,
694 ret=SSL_CTX_use_PrivateKey(ctx,pkey);
705 int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file)
726 x=PEM_read_bio_X509_AUX(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata);
733 ret=SSL_CTX_use_certificate(ctx,x);
745 if (ctx->extra_certs != NULL)
747 sk_X509_pop_free(ctx->extra_certs, X509_free);
748 ctx->extra_certs = NULL;
751 while ((ca = PEM_read_bio_X509(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata))
754 r = SSL_CTX_add_extra_chain_cert(ctx, ca);