summaryrefslogtreecommitdiffstats
path: root/apps/ca.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-11-04 09:30:55 +0000
committerAndy Polyakov <appro@openssl.org>2005-11-04 09:30:55 +0000
commitffa101872f69fc3836a1e6bc76175d2e9a1fd791 (patch)
treeb1aa85aebeeedd01c5eb5242be2aaf9522e7c2ef /apps/ca.c
parent4d24b4c4667fe44b0a4d2529e992aeff28dc1e1c (diff)
Eliminate dependency on read/write/stat in apps under _WIN32.
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 210b5e1ff4..9af7bab20b 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -63,7 +63,6 @@
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
-#include <sys/stat.h>
#include <openssl/conf.h>
#include <openssl/bio.h>
#include <openssl/err.h>
@@ -826,7 +825,6 @@ bad:
/* lookup where to write new certificates */
if ((outdir == NULL) && (req))
{
- struct stat sb;
if ((outdir=NCONF_get_string(conf,section,ENV_NEW_CERTS_DIR))
== NULL)
@@ -852,21 +850,13 @@ bad:
goto err;
}
- if (stat(outdir,&sb) != 0)
- {
- BIO_printf(bio_err,"unable to stat(%s)\n",outdir);
- perror(outdir);
- goto err;
- }
-#ifdef S_IFDIR
- if (!(sb.st_mode & S_IFDIR))
+ if (app_isdir(outdir)<=0)
{
BIO_printf(bio_err,"%s need to be a directory\n",outdir);
perror(outdir);
goto err;
}
#endif
-#endif
}
/*****************************************************************/