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)
187 /* Normal matching nm and name */
188 if (!strcmp(nm,name)) return 1;
196 if(!strcmp(nm,PEM_STRING_PKCS8))
198 if(!strcmp(nm,PEM_STRING_PKCS8INF))
200 slen = pem_check_suffix(nm, "PRIVATE KEY");
207 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);
218 slen = pem_check_suffix(nm, "PARAMETERS");
222 ameth = EVP_PKEY_asn1_find_str(&e, nm, slen);
242 if(!strcmp(nm,PEM_STRING_X509_OLD) &&
245 if(!strcmp(nm,PEM_STRING_X509_REQ_OLD) &&
249 if(!strcmp(nm,PEM_STRING_X509) &&
252 if(!strcmp(nm,PEM_STRING_X509_OLD) &&
256 if(!strcmp(nm, PEM_STRING_X509) &&
259 if(!strcmp(nm, PEM_STRING_PKCS7_SIGNED) &&
263 if(!strcmp(nm, PEM_STRING_X509) &&
266 if(!strcmp(nm, PEM_STRING_PKCS7) &&
277 char *nm=NULL,*header=NULL;
284 if (!PEM_read_bio(bp,&nm,&header,&data,&len)) {
290 if(check_pem(nm, name)) break;
291 OPENSSL_free(nm);
302 *pnm = nm;
307 if (!ret || !pnm) OPENSSL_free(nm);