This patch allows contrib/pgcrypto to build with OpenSSL 0.9.8
(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:

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

Michael Fuhr
Index: contrib/pgcrypto/openssl.c
RCS file: /projects/cvsroot/pgsql/contrib/pgcrypto/openssl.c,v
retrieving revision 1.17
diff -c -r1.17 openssl.c
*** contrib/pgcrypto/openssl.c  21 Mar 2005 05:21:04 -0000      1.17
--- contrib/pgcrypto/openssl.c  3 Jul 2005 02:06:21 -0000
*** 34,39 ****
--- 34,42 ----
  #include "px.h"
  #include <openssl/evp.h>
+ #include <openssl/blowfish.h>
+ #include <openssl/cast.h>
+ #include <openssl/des.h>
   * Is OpenSSL compiled with AES? 
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to