]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Backpatch to 8.0.X openssl portability fixes to pgcrypto.
authorBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 14:42:39 +0000 (14:42 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 14:42:39 +0000 (14:42 +0000)
contrib/pgcrypto/openssl.c

index 71a18dfddac40ee64f8e0093088956241e8a4cee..501b75d341d5f66bb759af07020180b5e9e5b4ec 100644 (file)
@@ -26,7 +26,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $PostgreSQL: pgsql/contrib/pgcrypto/openssl.c,v 1.13.4.1 2005/03/12 06:54:31 neilc Exp $
+ * $PostgreSQL: pgsql/contrib/pgcrypto/openssl.c,v 1.13.4.2 2005/07/04 14:42:39 momjian Exp $
  */
 
 #include <postgres.h>
 #include "px.h"
 
 #include <openssl/evp.h>
+#include <openssl/blowfish.h>
+#include <openssl/cast.h>
+#include <openssl/des.h>
 
+/*
+ * Does OpenSSL support AES? 
+ */
+#undef GOT_AES
+#if OPENSSL_VERSION_NUMBER >= 0x00907000L
+#define GOT_AES
+#include <openssl/aes.h>
+#endif
+  
 /*
  * Hashes
  */