From 75aed9f0c262bd930de01fed29381e281b35588c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 4 Jul 2005 14:42:39 +0000 Subject: [PATCH] Backpatch to 8.0.X openssl portability fixes to pgcrypto. --- contrib/pgcrypto/openssl.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/contrib/pgcrypto/openssl.c b/contrib/pgcrypto/openssl.c index 71a18dfddac..501b75d341d 100644 --- a/contrib/pgcrypto/openssl.c +++ b/contrib/pgcrypto/openssl.c @@ -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 @@ -34,7 +34,19 @@ #include "px.h" #include +#include +#include +#include +/* + * Does OpenSSL support AES? + */ +#undef GOT_AES +#if OPENSSL_VERSION_NUMBER >= 0x00907000L +#define GOT_AES +#include +#endif + /* * Hashes */ -- 2.39.5