summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authormiod <>2014-05-22 20:16:03 +0000
committermiod <>2014-05-22 20:16:03 +0000
commit5f35ad01d525b3834ce610866244a942ee37c441 (patch)
treead20d946ee08fa9802fc0ba62c8eefb44b645eeb /src/lib
parentf02ed2588c7917dc5b92c97841ea09a314c7be10 (diff)
downloadopenbsd-5f35ad01d525b3834ce610866244a942ee37c441.tar.gz
openbsd-5f35ad01d525b3834ce610866244a942ee37c441.tar.bz2
openbsd-5f35ad01d525b3834ce610866244a942ee37c441.zip
Add explicit #include lines for stdio.h, stdlib.h and string.h; these files
used to be pulled via <openssl/pqueue.h> which got removed, and it turns out that there is code in the wild which currently relies upon these headers to be brought in scope by including <openssl/dtls1.h>. Although such code needs to be fixed to not rely upon any system header being automagically included by including ssl headers, our goal is not to break code for the sake of it (ok, maybe from time to time). Hopefully, this commit can be reverted in a not-so-distant future.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/dtls1.h3
-rw-r--r--src/lib/libssl/src/ssl/dtls1.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/libssl/dtls1.h b/src/lib/libssl/dtls1.h
index d91b6e6397..2fbb815b6d 100644
--- a/src/lib/libssl/dtls1.h
+++ b/src/lib/libssl/dtls1.h
@@ -61,6 +61,9 @@
61#define HEADER_DTLS1_H 61#define HEADER_DTLS1_H
62 62
63#include <openssl/buffer.h> 63#include <openssl/buffer.h>
64#include <stdio.h>
65#include <stdlib.h>
66#include <string.h>
64#include <sys/time.h> 67#include <sys/time.h>
65 68
66#ifdef __cplusplus 69#ifdef __cplusplus
diff --git a/src/lib/libssl/src/ssl/dtls1.h b/src/lib/libssl/src/ssl/dtls1.h
index d91b6e6397..2fbb815b6d 100644
--- a/src/lib/libssl/src/ssl/dtls1.h
+++ b/src/lib/libssl/src/ssl/dtls1.h
@@ -61,6 +61,9 @@
61#define HEADER_DTLS1_H 61#define HEADER_DTLS1_H
62 62
63#include <openssl/buffer.h> 63#include <openssl/buffer.h>
64#include <stdio.h>
65#include <stdlib.h>
66#include <string.h>
64#include <sys/time.h> 67#include <sys/time.h>
65 68
66#ifdef __cplusplus 69#ifdef __cplusplus