diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-03-03 02:01:26 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-03-03 02:01:26 +0000 |
commit | 06c684912465497b3feff3e2327680b46b552be7 (patch) | |
tree | 39f4cc5a69ce3dc2f25c8e64c70014b83f968702 /ssl/ssl_cert.c | |
parent | 726bae3f0fabbe9508f494eed83e96a7039b52e8 (diff) |
Fix the Win32 compile environment and add various changes so it will now compile
under Win32 (9X and NT) again. Note: some signed/unsigned changes recently
checked in were killing the Win32 compile.
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 909af7c984..3612486b67 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -58,7 +58,9 @@ #include <stdio.h> #include <sys/types.h> +#ifndef WIN32 #include <dirent.h> +#endif #include "objects.h" #include "bio.h" #include "pem.h" @@ -381,7 +383,7 @@ int SSL_add_cert_file_to_stack(STACK *stack,const char *file) in=BIO_new(BIO_s_file_internal()); - if (ret == NULL || in == NULL) + if (in == NULL) { SSLerr(SSL_F_SSL_ADD_CERT_FILE_TO_STACK,ERR_R_MALLOC_FAILURE); goto err; @@ -429,6 +431,8 @@ err: * certs may have been added to \c stack. */ +#ifndef WIN32 + int SSL_add_cert_dir_to_stack(STACK *stack,const char *dir) { DIR *d=opendir(dir); @@ -458,3 +462,5 @@ int SSL_add_cert_dir_to_stack(STACK *stack,const char *dir) return 1; } + +#endif |