Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:private_key

63 	EVP_PKEY *private_key; /* the private key if using engine */
827 conn->private_key = ENGINE_load_private_key(conn->engine,
829 if (!conn->private_key) {
844 if (conn->private_key) {
845 EVP_PKEY_free(conn->private_key);
846 conn->private_key = NULL;
860 if (conn->private_key) {
861 EVP_PKEY_free(conn->private_key);
862 conn->private_key = NULL;
1501 static int tls_read_pkcs12(SSL_CTX *ssl_ctx, SSL *ssl, const char *private_key,
1508 f = fopen(private_key, "rb");
1557 if (SSL_use_PrivateKey(conn->ssl, conn->private_key) != 1) {
1578 const char *private_key,
1587 if (private_key == NULL && private_key_blob == NULL)
1652 if (!ok && private_key && strncmp("keystore://", private_key, 11) == 0) {
1653 BIO *bio = BIO_from_keystore(&private_key[11]);
1668 while (!ok && private_key) {
1670 if (SSL_use_PrivateKey_file(conn->ssl, private_key,
1682 if (SSL_use_PrivateKey_file(conn->ssl, private_key,
1698 if (tls_read_pkcs12(ssl_ctx, conn->ssl, private_key, passwd)
1706 if (tls_cryptoapi_cert(conn->ssl, private_key) == 0) {
1737 static int tls_global_private_key(SSL_CTX *ssl_ctx, const char *private_key,
1742 if (private_key == NULL)
1756 SSL_CTX_use_PrivateKey_file(ssl_ctx, private_key,
1758 SSL_CTX_use_PrivateKey_file(ssl_ctx, private_key,
1761 tls_read_pkcs12(ssl_ctx, NULL, private_key, passwd)) {
2310 params->private_key,
2315 params->private_key);
2348 if (tls_global_private_key(ssl_ctx, params->private_key,