Home | History | Annotate | Download | only in crypto

Lines Matching refs:private_key

73 	EVP_PKEY *private_key; /* the private key if using engine */
793 conn->private_key = ENGINE_load_private_key(conn->engine,
795 if (!conn->private_key) {
825 if (conn->private_key) {
826 EVP_PKEY_free(conn->private_key);
827 conn->private_key = NULL;
841 if (conn->private_key) {
842 EVP_PKEY_free(conn->private_key);
843 conn->private_key = NULL;
1502 static int tls_read_pkcs12(SSL_CTX *ssl_ctx, SSL *ssl, const char *private_key,
1509 f = fopen(private_key, "rb");
1662 if (SSL_use_PrivateKey(conn->ssl, conn->private_key) != 1) {
1683 const char *private_key,
1692 if (private_key == NULL && private_key_blob == NULL)
1757 if (!ok && private_key && strncmp("keystore://", private_key, 11) == 0) {
1758 BIO *bio = BIO_from_keystore(&private_key[11]);
1773 while (!ok && private_key) {
1775 if (SSL_use_PrivateKey_file(conn->ssl, private_key,
1787 if (SSL_use_PrivateKey_file(conn->ssl, private_key,
1803 if (tls_read_pkcs12(ssl_ctx, conn->ssl, private_key, passwd)
1811 if (tls_cryptoapi_cert(conn->ssl, private_key) == 0) {
1842 static int tls_global_private_key(SSL_CTX *ssl_ctx, const char *private_key,
1847 if (private_key == NULL)
1861 SSL_CTX_use_PrivateKey_file(ssl_ctx, private_key,
1863 SSL_CTX_use_PrivateKey_file(ssl_ctx, private_key,
1866 tls_read_pkcs12(ssl_ctx, NULL, private_key, passwd)) {
2479 params->private_key,
2484 params->private_key);
2517 if (tls_global_private_key(ssl_ctx, params->private_key,