• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssl/ssl/

Lines Matching refs:ssl

27 int SSL_use_certificate(SSL *ssl, X509 *x)
34 rv = ssl_security_cert(ssl, NULL, x, 0, 1);
40 return ssl_set_cert(ssl->cert, x);
43 int SSL_use_certificate_file(SSL *ssl, const char *file, int type)
65 x = PEM_read_bio_X509(in, NULL, ssl->default_passwd_callback,
66 ssl->default_passwd_callback_userdata);
77 ret = SSL_use_certificate(ssl, x);
84 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len)
95 ret = SSL_use_certificate(ssl, x);
101 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa)
122 ret = ssl_set_pkey(ssl->cert, pkey);
166 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type)
188 ssl->default_passwd_callback,
189 ssl->default_passwd_callback_userdata);
198 ret = SSL_use_RSAPrivateKey(ssl, rsa);
205 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d, long len)
217 ret = SSL_use_RSAPrivateKey(ssl, rsa);
223 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey)
231 ret = ssl_set_pkey(ssl->cert, pkey);
235 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type)
254 ssl->default_passwd_callback,
255 ssl->default_passwd_callback_userdata);
267 ret = SSL_use_PrivateKey(ssl, pkey);
274 int SSL_use_PrivateKey_ASN1(int type, SSL *ssl, const unsigned char *d,
287 ret = SSL_use_PrivateKey(ssl, pkey);
570 static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
585 passwd_callback = ssl->default_passwd_callback;
586 passwd_callback_userdata = ssl->default_passwd_callback_userdata;
610 ret = SSL_use_certificate(ssl, x);
627 r = SSL_clear_chain_certs(ssl);
640 r = SSL_add0_chain_cert(ssl, ca);
672 int SSL_use_certificate_chain_file(SSL *ssl, const char *file)
674 return use_certificate_chain_file(NULL, ssl, file);
1020 static int ssl_set_cert_and_key(SSL *ssl, SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,
1027 CERT *c = ssl != NULL ? ssl->cert : ctx->cert;
1032 rv = ssl_security_cert(ssl, ctx, x509, 0, 1);
1038 rv = ssl_security_cert(ssl, ctx, sk_X509_value(chain, j), 0, 0);
1112 int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey,
1115 return ssl_set_cert_and_key(ssl, NULL, x509, privatekey, chain, override);