Lines Matching refs:certfile
77 static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile);
95 char *infile, *outfile, *prog, *certfile;
137 } else if (strcmp(*argv, "-certfile") == 0) {
166 " -certfile arg certificates file of chain to a trusted CA\n");
169 " -nocrl no crl to load, just certs from '-certfile'\n");
232 certfile = sk_value(certflst, i);
233 if (add_certs_from_file(cert_stack, certfile) < 0) {
295 static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile)
304 if ((stat(certfile, &st) != 0)) {
305 BIO_printf(bio_err, "unable to load the file, %s\n", certfile);
310 if ((in == NULL) || (BIO_read_filename(in, certfile) <= 0)) {
311 BIO_printf(bio_err, "error opening the file, %s\n", certfile);
318 BIO_printf(bio_err, "error reading the file, %s\n", certfile);