Lines Matching defs:nm
77 static int check_pem(const char *nm, const char *name);
179 static int check_pem(const char *nm, const char *name)
181 /* Normal matching nm and name */
182 if (!strcmp(nm,name)) return 1;
186 if(!strcmp(nm,PEM_STRING_PKCS8) &&
189 if(!strcmp(nm,PEM_STRING_PKCS8INF) &&
192 if(!strcmp(nm,PEM_STRING_RSA) &&
195 if(!strcmp(nm,PEM_STRING_DSA) &&
198 if(!strcmp(nm,PEM_STRING_ECPRIVATEKEY) &&
202 if(!strcmp(nm,PEM_STRING_X509_OLD) &&
205 if(!strcmp(nm,PEM_STRING_X509_REQ_OLD) &&
209 if(!strcmp(nm,PEM_STRING_X509) &&
212 if(!strcmp(nm,PEM_STRING_X509_OLD) &&
216 if(!strcmp(nm, PEM_STRING_X509) &&
226 char *nm=NULL,*header=NULL;
233 if (!PEM_read_bio(bp,&nm,&header,&data,&len)) {
239 if(check_pem(nm, name)) break;
240 OPENSSL_free(nm);
251 *pnm = nm;
256 if (!ret || !pnm) OPENSSL_free(nm);