Add missing includes
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Jan 2018 22:55:14 +0000 (17:55 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 4 Jan 2018 22:56:09 +0000 (17:56 -0500)
<openssl/x509.h> is necessary to look into the X509 struct, used by
ac3ff8b1d8f98da38c53a701e6397931080a39cf.

src/backend/libpq/be-secure-openssl.c
src/interfaces/libpq/fe-secure-openssl.c

index 8d0256ba079c49567ce99fd8ab052d79cedf4608..dff61776bd8cedab8a987d9206c2a8a3d13ada8e 100644 (file)
@@ -57,6 +57,7 @@
 #ifndef OPENSSL_NO_ECDH
 #include <openssl/ec.h>
 #endif
+#include <openssl/x509.h>
 
 #include "libpq/libpq.h"
 #include "miscadmin.h"
index ac2842cd066f87be0b6c556c455ce37a9a8fb2ad..ecd68061a2e0fd8da7a10855c251553dafacd3f9 100644 (file)
@@ -58,6 +58,7 @@
 #ifdef USE_SSL_ENGINE
 #include <openssl/engine.h>
 #endif
+#include <openssl/x509.h>
 #include <openssl/x509v3.h>
 
 static bool verify_peer_name_matches_certificate(PGconn *);