Lines Matching refs:nm
31 static int check_pem(const char *nm, const char *name);
126 static int check_pem(const char *nm, const char *name)
128 /* Normal matching nm and name */
129 if (strcmp(nm, name) == 0)
137 if (strcmp(nm, PEM_STRING_PKCS8) == 0)
139 if (strcmp(nm, PEM_STRING_PKCS8INF) == 0)
141 slen = ossl_pem_check_suffix(nm, "PRIVATE KEY");
147 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);
157 slen = ossl_pem_check_suffix(nm, "PARAMETERS");
160 ameth = EVP_PKEY_asn1_find_str(&e, nm, slen);
176 if (strcmp(nm, PEM_STRING_DHXPARAMS) == 0
182 if (strcmp(nm, PEM_STRING_X509_OLD) == 0
186 if (strcmp(nm, PEM_STRING_X509_REQ_OLD) == 0
191 if (strcmp(nm, PEM_STRING_X509) == 0
195 if (strcmp(nm, PEM_STRING_X509_OLD) == 0
200 if (strcmp(nm, PEM_STRING_X509) == 0
204 if (strcmp(nm, PEM_STRING_PKCS7_SIGNED) == 0
209 if (strcmp(nm, PEM_STRING_X509) == 0
213 if (strcmp(nm, PEM_STRING_PKCS7) == 0
241 char *nm = NULL, *header = NULL;
247 pem_free(nm, flags, 0);
250 if (!PEM_read_bio_ex(bp, &nm, &header, &data, &len, flags)) {
255 } while (!check_pem(nm, name));
265 *pnm = nm;
271 pem_free(nm, flags, 0);