• Home
  • Raw
  • Download

Lines Matching refs:ssl

69 int SSL_use_certificate(SSL *ssl, X509 *x)  in SSL_use_certificate()  argument
76 if (!ssl_cert_inst(&ssl->cert)) in SSL_use_certificate()
81 return(ssl_set_cert(ssl->cert,x)); in SSL_use_certificate()
85 int SSL_use_certificate_file(SSL *ssl, const char *file, int type) in SSL_use_certificate_file() argument
112 …x=PEM_read_bio_X509(in,NULL,ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_us… in SSL_use_certificate_file()
126 ret=SSL_use_certificate(ssl,x); in SSL_use_certificate_file()
134 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len) in SSL_use_certificate_ASN1() argument
146 ret=SSL_use_certificate(ssl,x); in SSL_use_certificate_ASN1()
152 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa) in SSL_use_RSAPrivateKey() argument
162 if (!ssl_cert_inst(&ssl->cert)) in SSL_use_RSAPrivateKey()
176 ret=ssl_set_pkey(ssl->cert,pkey); in SSL_use_RSAPrivateKey()
229 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type) in SSL_use_RSAPrivateKey_file() argument
256 ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_userdata); in SSL_use_RSAPrivateKey_file()
268 ret=SSL_use_RSAPrivateKey(ssl,rsa); in SSL_use_RSAPrivateKey_file()
276 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len) in SSL_use_RSAPrivateKey_ASN1() argument
289 ret=SSL_use_RSAPrivateKey(ssl,rsa); in SSL_use_RSAPrivateKey_ASN1()
295 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) in SSL_use_PrivateKey() argument
304 if (!ssl_cert_inst(&ssl->cert)) in SSL_use_PrivateKey()
309 ret=ssl_set_pkey(ssl->cert,pkey); in SSL_use_PrivateKey()
314 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type) in SSL_use_PrivateKey_file() argument
336 ssl->ctx->default_passwd_callback,ssl->ctx->default_passwd_callback_userdata); in SSL_use_PrivateKey_file()
353 ret=SSL_use_PrivateKey(ssl,pkey); in SSL_use_PrivateKey_file()
361 int SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d, long len) in SSL_use_PrivateKey_ASN1() argument
374 ret=SSL_use_PrivateKey(ssl,pkey); in SSL_use_PrivateKey_ASN1()
700 int SSL_use_certificate_chain(SSL *ssl, STACK_OF(X509) *cert_chain) in SSL_use_certificate_chain() argument
702 if (ssl == NULL) in SSL_use_certificate_chain()
707 if (ssl->cert == NULL) in SSL_use_certificate_chain()
712 if (ssl->cert->key == NULL) in SSL_use_certificate_chain()
717 if (ssl->cert->key->cert_chain != NULL) in SSL_use_certificate_chain()
718 sk_X509_pop_free(ssl->cert->key->cert_chain, X509_free); in SSL_use_certificate_chain()
719 ssl->cert->key->cert_chain = cert_chain; in SSL_use_certificate_chain()
723 STACK_OF(X509) *SSL_get_certificate_chain(SSL *ssl, X509 *x) in STACK_OF()
728 if (ssl == NULL) in STACK_OF()
730 if (ssl->cert == NULL) in STACK_OF()
733 if (ssl->cert->pkeys[i].x509 == x) in STACK_OF()
734 return ssl->cert->pkeys[i].cert_chain; in STACK_OF()