Lines Matching refs:nm
82 static int check_pem(const char *nm, const char *name);
185 static int check_pem(const char *nm, const char *name) in check_pem() argument
188 if (!strcmp(nm,name)) return 1; in check_pem()
196 if(!strcmp(nm,PEM_STRING_PKCS8)) in check_pem()
198 if(!strcmp(nm,PEM_STRING_PKCS8INF)) in check_pem()
200 slen = pem_check_suffix(nm, "PRIVATE KEY"); in check_pem()
207 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in check_pem()
218 slen = pem_check_suffix(nm, "PARAMETERS"); in check_pem()
222 ameth = EVP_PKEY_asn1_find_str(&e, nm, slen); in check_pem()
242 if(!strcmp(nm,PEM_STRING_X509_OLD) && in check_pem()
245 if(!strcmp(nm,PEM_STRING_X509_REQ_OLD) && in check_pem()
249 if(!strcmp(nm,PEM_STRING_X509) && in check_pem()
252 if(!strcmp(nm,PEM_STRING_X509_OLD) && in check_pem()
256 if(!strcmp(nm, PEM_STRING_X509) && in check_pem()
259 if(!strcmp(nm, PEM_STRING_PKCS7_SIGNED) && in check_pem()
263 if(!strcmp(nm, PEM_STRING_X509) && in check_pem()
266 if(!strcmp(nm, PEM_STRING_PKCS7) && in check_pem()
277 char *nm=NULL,*header=NULL; in PEM_bytes_read_bio() local
284 if (!PEM_read_bio(bp,&nm,&header,&data,&len)) { in PEM_bytes_read_bio()
290 if(check_pem(nm, name)) break; in PEM_bytes_read_bio()
291 OPENSSL_free(nm); in PEM_bytes_read_bio()
302 *pnm = nm; in PEM_bytes_read_bio()
307 if (!ret || !pnm) OPENSSL_free(nm); in PEM_bytes_read_bio()