Lines Matching defs:certfile
75 static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);
92 char *infile,*outfile,*prog,*certfile;
141 else if (strcmp(*argv,"-certfile") == 0)
166 BIO_printf(bio_err," -certfile arg certificates file of chain to a trusted CA\n");
168 BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n");
231 certfile = sk_value(certflst, i);
232 if (add_certs_from_file(cert_stack,certfile) < 0)
296 static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile)
305 if ((stat(certfile,&st) != 0))
307 BIO_printf(bio_err,"unable to load the file, %s\n",certfile);
312 if ((in == NULL) || (BIO_read_filename(in,certfile) <= 0))
314 BIO_printf(bio_err,"error opening the file, %s\n",certfile);
321 BIO_printf(bio_err,"error reading the file, %s\n",certfile);