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.
This commit is contained in:
Dr. Stephen Henson
1999-03-03 02:01:26 +00:00
parent 726bae3f0f
commit 06c6849124
13 changed files with 84 additions and 26 deletions

View File

@@ -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