Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/ipsec-tools-0_8-branch]: src/crypto/dist/ipsec-tools From G?tz Babin-Ebe...



details:   https://anonhg.NetBSD.org/src/rev/68d1c6af043f
branches:  ipsec-tools-0_8-branch
changeset: 763333:68d1c6af043f
user:      tteras <tteras%NetBSD.org@localhost>
date:      Mon Dec 24 08:48:08 2012 +0000

description:
>From G?tz Babin-Ebell <g.babin-ebell%novamedia.de@localhost>:
Require OpenSSL 0.9.8s or higher

diffstat:

 crypto/dist/ipsec-tools/configure.ac                          |   4 +-
 crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c           |  13 ++--------
 crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c |   4 +--
 3 files changed, 6 insertions(+), 15 deletions(-)

diffs (81 lines):

diff -r cb4af5ebd1fb -r 68d1c6af043f crypto/dist/ipsec-tools/configure.ac
--- a/crypto/dist/ipsec-tools/configure.ac      Wed Aug 29 12:01:56 2012 +0000
+++ b/crypto/dist/ipsec-tools/configure.ac      Mon Dec 24 08:48:08 2012 +0000
@@ -207,12 +207,12 @@
 AC_TRY_COMPILE(
 [#include <openssl/opensslv.h>
 ],
-[#if OPENSSL_VERSION_NUMBER < 0x0090602fL
+[#if OPENSSL_VERSION_NUMBER < 0x0090813fL
 #error OpenSSL version is too old ...
 #endif],
 [AC_MSG_RESULT([ok])],
 [AC_MSG_RESULT(too old)
-AC_MSG_ERROR([OpenSSL version must be 0.9.6 or higher. Aborting.])
+AC_MSG_ERROR([OpenSSL version must be 0.9.8s or higher. Aborting.])
 ])
 
 AC_CHECK_HEADERS(openssl/engine.h)
diff -r cb4af5ebd1fb -r 68d1c6af043f crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
--- a/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c       Wed Aug 29 12:01:56 2012 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c       Mon Dec 24 08:48:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto_openssl.c,v 1.20.4.1 2012/08/23 11:46:06 tteras Exp $   */
+/*     $NetBSD: crypto_openssl.c,v 1.20.4.2 2012/12/24 08:48:08 tteras Exp $   */
 
 /* Id: crypto_openssl.c,v 1.47 2006/05/06 20:42:09 manubsd Exp */
 
@@ -44,8 +44,8 @@
 /* get openssl/ssleay version number */
 #include <openssl/opensslv.h>
 
-#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090602fL)
-#error OpenSSL version 0.9.6 or later required.
+#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090813fL)
+#error OpenSSL version 0.9.8s or later required.
 #endif
 
 #include <openssl/pem.h>
@@ -91,12 +91,7 @@
 #endif
 #include "plog.h"
 
-/* 0.9.7 stuff? */
-#if OPENSSL_VERSION_NUMBER < 0x0090700fL
-typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;
-#else
 #define USE_NEW_DES_API
-#endif
 
 #define OpenSSL_BUG()  do { plog(LLV_ERROR, LOCATION, NULL, "OpenSSL function failed\n"); } while(0)
 
@@ -505,10 +500,8 @@
        if (csc == NULL)
                goto end;
        X509_STORE_CTX_init(csc, cert_ctx, x509, NULL);
-#if OPENSSL_VERSION_NUMBER >= 0x00907000L
        X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK);
        X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);
-#endif
        error = X509_verify_cert(csc);
        X509_STORE_CTX_free(csc);
 
diff -r cb4af5ebd1fb -r 68d1c6af043f crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c
--- a/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c     Wed Aug 29 12:01:56 2012 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c     Mon Dec 24 08:48:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sha2.c,v 1.4 2006/09/09 16:22:36 manu Exp $    */
+/*     $NetBSD: sha2.c,v 1.4.40.1 2012/12/24 08:48:08 tteras Exp $     */
 
 /* Id: sha2.c,v 1.6 2004/09/21 14:35:25 ludvigm Exp */
 
@@ -56,9 +56,7 @@
 #define bzero(a, b) memset((a), 0, (b))
 #define panic(a) err(1, (a))
 
-#if OPENSSL_VERSION_NUMBER >= 0x00907000L
 #define HAVE_EVP_097
-#endif
 
 /*
  * ASSERT NOTE:



Home | Main Index | Thread Index | Old Index