summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_cert.c')
-rw-r--r--src/lib/libssl/ssl_cert.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c
index 5123a89182..6d144077f9 100644
--- a/src/lib/libssl/ssl_cert.c
+++ b/src/lib/libssl/ssl_cert.c
@@ -114,13 +114,13 @@
114 * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. 114 * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project.
115 */ 115 */
116 116
117#include <stdio.h> 117#include <sys/types.h>
118 118
119#include "e_os.h" 119#include <stdio.h>
120#ifndef NO_SYS_TYPES_H 120#include <unistd.h>
121# include <sys/types.h>
122#endif
123 121
122#include <openssl/opensslconf.h>
123#include <openssl/e_os2.h>
124#include "o_dir.h" 124#include "o_dir.h"
125#include <openssl/objects.h> 125#include <openssl/objects.h>
126#include <openssl/bio.h> 126#include <openssl/bio.h>
@@ -837,7 +837,7 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
837 837
838 if (errno) 838 if (errno)
839 { 839 {
840 SYSerr(SYS_F_OPENDIR, get_last_sys_error()); 840 SYSerr(SYS_F_OPENDIR, errno);
841 ERR_add_error_data(3, "OPENSSL_DIR_read(&ctx, '", dir, "')"); 841 ERR_add_error_data(3, "OPENSSL_DIR_read(&ctx, '", dir, "')");
842 SSLerr(SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK, ERR_R_SYS_LIB); 842 SSLerr(SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK, ERR_R_SYS_LIB);
843 goto err; 843 goto err;