]> granicus.if.org Git - postgresql/commitdiff
Bruce, please apply this additional patch, that fixes the
authorBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 02:02:01 +0000 (02:02 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 02:02:01 +0000 (02:02 +0000)
auto-detection of AES.

Now openssl.c just checks OpenSSL version.  Whoever compiles
newer OpenSSL without AES is on his own.

Marko Kreen

contrib/pgcrypto/openssl.c

index 86f29e4dc89cd2cbdc449fa7305fc4cc68868bbf..8a21194f8c296f0db27188467856aaaa42d7bdb5 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.18 2005/07/03 02:32:56 momjian Exp $
+ * $PostgreSQL: pgsql/contrib/pgcrypto/openssl.c,v 1.19 2005/07/04 02:02:01 momjian Exp $
  */
 
 #include <postgres.h>
 #include <openssl/des.h>
 
 /*
- * Is OpenSSL compiled with AES? 
+ * Does OpenSSL support AES? 
  */
 #undef GOT_AES
-#ifdef AES_ENCRYPT
+#if OPENSSL_VERSION_NUMBER >= 0x00907000L
 #define GOT_AES
+#include <openssl/aes.h>
 #endif
 
 /*