Module Name: src Committed By: tteras Date: Mon Dec 24 08:46:27 UTC 2012
Modified Files: src/crypto/dist/ipsec-tools: configure.ac src/crypto/dist/ipsec-tools/src/racoon: crypto_openssl.c src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2: sha2.c Log Message: >From Götz Babin-Ebell <g.babin-eb...@novamedia.de: Require OpenSSL 0.9.8s or higher To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/crypto/dist/ipsec-tools/configure.ac cvs rdiff -u -r1.22 -r1.23 \ src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c cvs rdiff -u -r1.4 -r1.5 \ src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/dist/ipsec-tools/configure.ac diff -u src/crypto/dist/ipsec-tools/configure.ac:1.11 src/crypto/dist/ipsec-tools/configure.ac:1.12 --- src/crypto/dist/ipsec-tools/configure.ac:1.11 Tue Jan 10 12:07:30 2012 +++ src/crypto/dist/ipsec-tools/configure.ac Mon Dec 24 08:46:27 2012 @@ -207,12 +207,12 @@ AC_MSG_CHECKING(openssl version) 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) Index: src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c diff -u src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:1.22 src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:1.23 --- src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:1.22 Thu Nov 29 15:31:24 2012 +++ src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c Mon Dec 24 08:46:27 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: crypto_openssl.c,v 1.22 2012/11/29 15:31:24 vanhu Exp $ */ +/* $NetBSD: crypto_openssl.c,v 1.23 2012/12/24 08:46:27 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 @@ eay_check_x509cert(cert, CApath, CAfile, 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); Index: src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c diff -u src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:1.4 src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:1.5 --- src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c:1.4 Sat Sep 9 16:22:36 2006 +++ src/crypto/dist/ipsec-tools/src/racoon/missing/crypto/sha2/sha2.c Mon Dec 24 08:46:27 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: sha2.c,v 1.4 2006/09/09 16:22:36 manu Exp $ */ +/* $NetBSD: sha2.c,v 1.5 2012/12/24 08:46:27 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: