Lines Matching refs:pem_name

166     char *pem_name;  member
181 OPENSSL_free(data->pem_name); in store_info_free()
202 data->pem_name = in new_EMBEDDED()
205 if (new_pem_name != NULL && data->pem_name == NULL) { in new_EMBEDDED()
256 typedef OSSL_STORE_INFO *(*file_try_decode_fn)(const char *pem_name,
293 static OSSL_STORE_INFO *try_decode_PKCS12(const char *pem_name, in try_decode_PKCS12() argument
310 if (pem_name != NULL) in try_decode_PKCS12()
428 static OSSL_STORE_INFO *try_decode_PKCS8Encrypted(const char *pem_name, in try_decode_PKCS8Encrypted() argument
449 if (pem_name != NULL) { in try_decode_PKCS8Encrypted()
450 if (strcmp(pem_name, PEM_STRING_PKCS8) != 0) in try_decode_PKCS8Encrypted()
505 static OSSL_STORE_INFO *try_decode_PrivateKey(const char *pem_name, in try_decode_PrivateKey() argument
519 if (pem_name != NULL) { in try_decode_PrivateKey()
520 if (strcmp(pem_name, PEM_STRING_PKCS8INF) == 0) { in try_decode_PrivateKey()
532 if ((slen = check_suffix(pem_name, "PRIVATE KEY")) > 0 in try_decode_PrivateKey()
533 && (ameth = EVP_PKEY_asn1_find_str(NULL, pem_name, in try_decode_PrivateKey()
634 static OSSL_STORE_INFO *try_decode_PUBKEY(const char *pem_name, in try_decode_PUBKEY() argument
647 if (pem_name != NULL) { in try_decode_PUBKEY()
648 if (strcmp(pem_name, PEM_STRING_PUBLIC) != 0) in try_decode_PUBKEY()
670 static OSSL_STORE_INFO *try_decode_params(const char *pem_name, in try_decode_params() argument
684 if (pem_name != NULL) { in try_decode_params()
688 if ((slen = check_suffix(pem_name, "PARAMETERS")) > 0 in try_decode_params()
689 && (ameth = EVP_PKEY_asn1_find_str(NULL, pem_name, slen)) != NULL in try_decode_params()
747 static OSSL_STORE_INFO *try_decode_X509Certificate(const char *pem_name, in try_decode_X509Certificate() argument
770 if (pem_name != NULL) { in try_decode_X509Certificate()
771 if (strcmp(pem_name, PEM_STRING_X509_TRUSTED) == 0) in try_decode_X509Certificate()
773 else if (strcmp(pem_name, PEM_STRING_X509_OLD) != 0 in try_decode_X509Certificate()
774 && strcmp(pem_name, PEM_STRING_X509) != 0) in try_decode_X509Certificate()
804 static OSSL_STORE_INFO *try_decode_X509CRL(const char *pem_name, in try_decode_X509CRL() argument
817 if (pem_name != NULL) { in try_decode_X509CRL()
818 if (strcmp(pem_name, PEM_STRING_X509_CRL) != 0) in try_decode_X509CRL()
1161 const char *pem_name, in file_load_try_decode() argument
1193 handler->try_decode(pem_name, pem_header, data, len, in file_load_try_decode()
1248 pem_name = new_pem_name = embedded->pem_name; in file_load_try_decode()
1252 embedded->pem_name = NULL; in file_load_try_decode()
1294 static int file_read_pem(BIO *bp, char **pem_name, char **pem_header, in file_read_pem() argument
1300 ? PEM_read_bio_ex(bp, pem_name, pem_header, data, len, in file_read_pem()
1302 : PEM_read_bio(bp, pem_name, pem_header, data, len); in file_read_pem()
1553 char *pem_name = NULL; /* PEM record name */ in file_load() local
1560 if (!file_read_pem(ctx->_.file.file, &pem_name, &pem_header, in file_load()
1580 result = file_load_try_decode(ctx, pem_name, pem_header, data, len, in file_load()
1590 if (!ossl_assert(pem_name == NULL || matchcount <= 1)) { in file_load()
1604 if (pem_name != NULL) in file_load()
1605 ERR_add_error_data(3, "PEM type is '", pem_name, "'"); in file_load()
1612 pem_free_flag(pem_name, (ctx->flags & FILE_FLAG_SECMEM) != 0, 0); in file_load()