diff options
author | Andy Polyakov <appro@openssl.org> | 2005-11-04 09:30:55 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-11-04 09:30:55 +0000 |
commit | ffa101872f69fc3836a1e6bc76175d2e9a1fd791 (patch) | |
tree | b1aa85aebeeedd01c5eb5242be2aaf9522e7c2ef /apps/crl2p7.c | |
parent | 4d24b4c4667fe44b0a4d2529e992aeff28dc1e1c (diff) |
Eliminate dependency on read/write/stat in apps under _WIN32.
Diffstat (limited to 'apps/crl2p7.c')
-rw-r--r-- | apps/crl2p7.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/crl2p7.c b/apps/crl2p7.c index b2f2d121d5..15138acb47 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -63,7 +63,6 @@ #include <stdio.h> #include <string.h> #include <sys/types.h> -#include <sys/stat.h> #include "apps.h" #include <openssl/err.h> #include <openssl/evp.h> @@ -295,19 +294,12 @@ end: */ static int add_certs_from_file(STACK_OF(X509) *stack, char *certfile) { - struct stat st; BIO *in=NULL; int count=0; int ret= -1; STACK_OF(X509_INFO) *sk=NULL; X509_INFO *xi; - if ((stat(certfile,&st) != 0)) - { - BIO_printf(bio_err,"unable to load the file, %s\n",certfile); - goto end; - } - in=BIO_new(BIO_s_file()); if ((in == NULL) || (BIO_read_filename(in,certfile) <= 0)) { |