summaryrefslogtreecommitdiff
path: root/ssl/ssl_cert.c
diff options
context:
space:
mode:
authorsteve <steve>1999-03-03 02:01:17 +0000
committersteve <steve>1999-03-03 02:01:17 +0000
commit7a988d74927c8032ce3eab185990659c742b18d7 (patch)
treec567995239b62bdb6230159627ce0cb057d3e456 /ssl/ssl_cert.c
parent8dd814c9dca5530e8d27703bd0a02c393c283854 (diff)
downloadopenssl-7a988d74927c8032ce3eab185990659c742b18d7.tar.gz
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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c
index 909af7c98..3612486b6 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