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) &&
200 if(!strcmp(nm,PEM_STRING_X509_OLD) &&
203 if(!strcmp(nm,PEM_STRING_X509_REQ_OLD) &&
207 if(!strcmp(nm,PEM_STRING_X509) &&
210 if(!strcmp(nm,PEM_STRING_X509_OLD) &&
214 if(!strcmp(nm, PEM_STRING_X509) &&
224 char *nm=NULL,*header=NULL;
231 if (!PEM_read_bio(bp,&nm,&header,&data,&len)) {
237 if(check_pem(nm, name)) break;
238 OPENSSL_free(nm);
249 *pnm = nm;
254 if (!ret || !pnm) OPENSSL_free(nm);