Home | History | Annotate | Download | only in crypto

Lines Matching refs:private_key

69 	EVP_PKEY *private_key; /* the private key if using engine */
848 conn->private_key = ENGINE_load_private_key(conn->engine,
850 if (!conn->private_key) {
880 if (conn->private_key) {
881 EVP_PKEY_free(conn->private_key);
882 conn->private_key = NULL;
896 if (conn->private_key) {
897 EVP_PKEY_free(conn->private_key);
898 conn->private_key = NULL;
1794 static int tls_read_pkcs12(SSL_CTX *ssl_ctx, SSL *ssl, const char *private_key,
1801 f = fopen(private_key, "rb");
1956 if (SSL_use_PrivateKey(conn->ssl, conn->private_key) != 1) {
1977 const char *private_key,
1986 if (private_key == NULL && private_key_blob == NULL)
2040 if (!ok && private_key &&
2041 os_strncmp("keystore://", private_key, 11) == 0) {
2042 BIO *bio = BIO_from_keystore(&private_key[11]);
2059 while (!ok && private_key) {
2061 if (SSL_use_PrivateKey_file(conn->ssl, private_key,
2069 if (SSL_use_PrivateKey_file(conn->ssl, private_key,
2081 if (tls_read_pkcs12(ssl_ctx, conn->ssl, private_key, passwd)
2089 if (tls_cryptoapi_cert(conn->ssl, private_key) == 0) {
2120 static int tls_global_private_key(SSL_CTX *ssl_ctx, const char *private_key,
2125 if (private_key == NULL)
2139 SSL_CTX_use_PrivateKey_file(ssl_ctx, private_key,
2141 SSL_CTX_use_PrivateKey_file(ssl_ctx, private_key,
2144 tls_read_pkcs12(ssl_ctx, NULL, private_key, passwd)) {
2776 params->private_key,
2781 params->private_key);
2823 if (tls_global_private_key(ssl_ctx, params->private_key,