]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: add missing includes
authorDavid Benjamin <davidben@google.com>
Fri, 15 Sep 2017 22:36:40 +0000 (18:36 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 16 Sep 2017 07:11:18 +0000 (03:11 -0400)
lib/vtls/openssl.c uses OpenSSL APIs from BUF_MEM and BIO APIs. Include
their headers directly rather than relying on other OpenSSL headers
including things.

Closes https://github.com/curl/curl/pull/1891

lib/vtls/openssl.c

index 2933584b347db3e85ed12a3fdc40569242c54385..786f6c09a2a056b2623596f107ed546382b371de 100644 (file)
@@ -66,6 +66,8 @@
 #include <openssl/conf.h>
 #include <openssl/bn.h>
 #include <openssl/rsa.h>
+#include <openssl/bio.h>
+#include <openssl/buffer.h>
 
 #ifdef HAVE_OPENSSL_PKCS12_H
 #include <openssl/pkcs12.h>