X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=ssl%2Fssl_cert.c;h=a695d042cf2e9f8e15ced5b840a4901fe69e905e;hb=673b102c5b265bd6c517ac40ab76e1606a243c08;hp=b33658f017b1e21862c33e08abb6a3162dfbf5f2;hpb=a40f6dce871e8e020ca16713cc19798fcc141ed1;p=openssl.git diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index b33658f017..a695d042cf 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -105,14 +105,22 @@ */ #include -#include -#if !defined(WIN32) && !defined(VSM) && !defined(NeXT) + +#include "openssl/e_os.h" + +#ifndef NO_SYS_TYPES_H +# include +#endif + +#if !defined(WIN32) && !defined(VSM) && !defined(NeXT) && !defined(MAC_OS_pre_X) #include #endif + #ifdef NeXT #include #define dirent direct #endif + #include #include #include @@ -426,7 +434,7 @@ int ssl_verify_cert_chain(SSL *s,STACK_OF(X509) *sk) (char *)s); if (s->ctx->app_verify_callback != NULL) - i=s->ctx->app_verify_callback(&ctx); + i=s->ctx->app_verify_callback(&ctx); /* should pass app_verify_arg */ else { #ifndef NO_X509_VERIFY @@ -671,6 +679,7 @@ err: #ifndef WIN32 #ifndef VMS /* XXXX This may be fixed in the future */ +#ifndef MAC_OS_pre_X int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack, const char *dir) @@ -714,3 +723,4 @@ err: #endif #endif +#endif