This patch allows contrib/pgcrypto to build with OpenSSL 0.9.8
authorBruce Momjian <bruce@momjian.us>
Sun, 3 Jul 2005 02:32:56 +0000 (02:32 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 3 Jul 2005 02:32:56 +0000 (02:32 +0000)
(currently in beta) when cryptolib = openssl.  According to the
following checkin message from several years ago, OpenSSL application
developers should no longer rely on <openssl/evp.h> to include
everything they need:

http://cvs.openssl.org/chngview?cn=9888

This patch adds the necessary header files.  It doesn't appear to
break anything when building against OpenSSL 0.9.7.

BTW, core appears to build and work fine with OpenSSL 0.9.8.  I've
built 7.3 through HEAD against 0.9.8-beta6 without noticing any
problems.

Michael Fuhr

contrib/pgcrypto/openssl.c

index 3d72a3a5dbbe3f64ad13111d8e4a921eff3ef502..b0f35ec066de20d1304d736fecc4a9cecc193e2b 100644 (file)
@@ -34,6 +34,9 @@
 #include "px.h"
 
 #include <openssl/evp.h>
+#include <openssl/blowfish.h>
+#include <openssl/cast.h>
+#include <openssl/des.h>
 
 /*
  * Is OpenSSL compiled with AES?