diff options
Diffstat (limited to 'src/lib/libcrypto/x509/by_dir.c')
-rw-r--r-- | src/lib/libcrypto/x509/by_dir.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c index 46003cb320..032210424d 100644 --- a/src/lib/libcrypto/x509/by_dir.c +++ b/src/lib/libcrypto/x509/by_dir.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: by_dir.c,v 1.35 2015/02/05 01:33:22 reyk Exp $ */ | 1 | /* $OpenBSD: by_dir.c,v 1.36 2015/02/12 03:54:07 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -70,9 +70,7 @@ | |||
70 | #include <openssl/lhash.h> | 70 | #include <openssl/lhash.h> |
71 | #include <openssl/x509.h> | 71 | #include <openssl/x509.h> |
72 | 72 | ||
73 | #ifndef OPENSSL_NO_POSIX_IO | ||
74 | # include <sys/stat.h> | 73 | # include <sys/stat.h> |
75 | #endif | ||
76 | 74 | ||
77 | typedef struct lookup_dir_hashes_st { | 75 | typedef struct lookup_dir_hashes_st { |
78 | unsigned long hash; | 76 | unsigned long hash; |
@@ -344,13 +342,11 @@ get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, | |||
344 | (void) snprintf(b->data, b->max, "%s/%08lx.%s%d", | 342 | (void) snprintf(b->data, b->max, "%s/%08lx.%s%d", |
345 | ent->dir, h, postfix, k); | 343 | ent->dir, h, postfix, k); |
346 | 344 | ||
347 | #ifndef OPENSSL_NO_POSIX_IO | ||
348 | { | 345 | { |
349 | struct stat st; | 346 | struct stat st; |
350 | if (stat(b->data, &st) < 0) | 347 | if (stat(b->data, &st) < 0) |
351 | break; | 348 | break; |
352 | } | 349 | } |
353 | #endif | ||
354 | /* found one. */ | 350 | /* found one. */ |
355 | if (type == X509_LU_X509) { | 351 | if (type == X509_LU_X509) { |
356 | if ((X509_load_cert_file(xl, b->data, | 352 | if ((X509_load_cert_file(xl, b->data, |