Lines Matching defs:private_key

247 	EVP_PKEY *private_key; /* the private key if using engine */
1272 conn->private_key = EVP_PKEY_from_keystore(key_id);
1273 if (!conn->private_key) {
1325 conn->private_key = ENGINE_load_private_key(conn->engine,
1328 if (!conn->private_key) {
1365 if (conn->private_key) {
1366 EVP_PKEY_free(conn->private_key);
1367 conn->private_key = NULL;
1381 if (conn->private_key) {
1382 EVP_PKEY_free(conn->private_key);
1383 conn->private_key = NULL;
3712 const char *private_key, const char *passwd)
3718 f = fopen(private_key, "rb");
3878 if (SSL_use_PrivateKey(conn->ssl, conn->private_key) != 1) {
3909 const char *private_key,
3918 bio = BIO_new_file(private_key, "r");
3928 bio = BIO_new_file(private_key, "r");
3957 const char *private_key,
3965 if (private_key == NULL && private_key_blob == NULL)
4044 while (!ok && private_key) {
4045 if (tls_use_private_key_file(data, conn->ssl, private_key,
4051 if (tls_read_pkcs12(data, conn->ssl, private_key,
4059 if (tls_cryptoapi_cert(conn->ssl, private_key) == 0) {
4088 const char *private_key,
4093 if (private_key == NULL)
4096 if (tls_use_private_key_file(data, NULL, private_key,
4098 tls_read_pkcs12(data, NULL, private_key, private_key_passwd)) {
5356 if (!key_id && params->private_key && can_pkcs11 &&
5357 os_strncmp(params->private_key, "pkcs11:", 7) == 0) {
5359 key_id = params->private_key;
5378 /* If private_key points to a TPM2-wrapped key, automatically enable
5380 if (params->private_key &&
5382 is_tpm2_key(params->private_key)) {
5384 params->private_key);
5385 key_id = key_id ? key_id : params->private_key;
5461 params->private_key,
5466 params->private_key);
5689 tls_global_private_key(data, params->private_key,