summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_cert.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-04-13 21:11:19 +0000
committermpi <mpi@openbsd.org>2014-04-13 21:11:19 +0000
commit2fa0eb2764f33e59b5fd5c912036aeae676b2591 (patch)
tree75d49a5f5c352421e2f17db5737fc9c89a41c7b7 /lib/libssl/ssl_cert.c
parentremove more cases of MS_STATIC, MS_CALLBACK, and MS_FAR. Did you (diff)
downloadwireguard-openbsd-2fa0eb2764f33e59b5fd5c912036aeae676b2591.tar.xz
wireguard-openbsd-2fa0eb2764f33e59b5fd5c912036aeae676b2591.zip
Do not include "e_os.h" anymore. Simply pull in the necessary headers.
ok miod@, deraadt@
Diffstat (limited to 'lib/libssl/ssl_cert.c')
-rw-r--r--lib/libssl/ssl_cert.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libssl/ssl_cert.c b/lib/libssl/ssl_cert.c
index 5123a89182e..6d144077f9f 100644
--- a/lib/libssl/ssl_cert.c
+++ b/lib/libssl/ssl_cert.c
@@ -114,13 +114,13 @@
* SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
*/
-#include <stdio.h>
+#include <sys/types.h>
-#include "e_os.h"
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <stdio.h>
+#include <unistd.h>
+#include <openssl/opensslconf.h>
+#include <openssl/e_os2.h>
#include "o_dir.h"
#include <openssl/objects.h>
#include <openssl/bio.h>
@@ -837,7 +837,7 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
if (errno)
{
- SYSerr(SYS_F_OPENDIR, get_last_sys_error());
+ SYSerr(SYS_F_OPENDIR, errno);
ERR_add_error_data(3, "OPENSSL_DIR_read(&ctx, '", dir, "')");
SSLerr(SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK, ERR_R_SYS_LIB);
goto err;