]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Brought up-to-date with Alon's PKCS11 patch at
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 17 Oct 2005 13:07:52 +0000 (13:07 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 17 Oct 2005 13:07:52 +0000 (13:07 +0000)
https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21/openvpn@652
Pre-2.1_beta5

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@654 e7ae566f-a301-0410-adde-c780ea21d3b5

ChangeLog
configure.ac
pkcs11.c

index cc763c99470267baabc0b7464e65eae8e89ccb70..87d2f5b6cb8bbd44cd881bf8d9f8a4175d74b45f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,10 +3,6 @@ Copyright (C) 2002-2005 OpenVPN Solutions LLC <info@openvpn.net>
 
 $Id$
 
-2005.10.xx -- Version 2.1-beta5
-
-* More PKCS#11 additions/changes (Alon Bar-Lev).
-
 2005.10.17 -- Version 2.1-beta4
 
 * Fixed bug introduced in 2.1-beta3 where management
index 2fed39bdf95765b55b3c1f41c2811e962c2f500a..1056887a8c8a8df72ac6d91329baa09ca9f2394f 100644 (file)
@@ -25,7 +25,7 @@ dnl Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.50)
 
-AC_INIT([OpenVPN], [2.1_beta5], [openvpn-users@lists.sourceforge.net], [openvpn])
+AC_INIT([OpenVPN], [2.1_beta4], [openvpn-users@lists.sourceforge.net], [openvpn])
 AM_CONFIG_HEADER(config.h)
 AC_CONFIG_SRCDIR(syshead.h)
 
@@ -386,7 +386,7 @@ AC_FUNC_MEMCMP
 
 AC_CHECK_FUNCS(socket recv recvfrom send sendto listen dnl
               accept connect bind select gethostbyname dnl
-               inet_ntoa time ctime memset vsnprintf, [],
+               inet_ntoa time ctime memset vsnprintf strdup, [],
               [AC_MSG_ERROR([Required library function not found])])
 
 dnl
index 54dc532c04caedea4e9afd4e83d18005a17e4c30..8dd9dfef95c6148e35a416abb37ff6505fafc38a 100644 (file)
--- a/pkcs11.c
+++ b/pkcs11.c
@@ -1465,18 +1465,18 @@ static
 CK_RV
 pkcs11_forkFixup () {
 
-       pkcs11_provider_t current;
+       if (pkcs11_data != NULL && pkcs11_data->fInitialized) {
 
-       ASSERT (pkcs11_data!=NULL);
-       ASSERT (pkcs11_data->fInitialized);
+               pkcs11_provider_t current;
 
-       for (
-               current = pkcs11_data->providers;
-               current != NULL;
-               current = current->next
-       ) {
-               if (current->fEnabled) {
-                       current->f->C_Initialize (NULL);
+               for (
+                       current = pkcs11_data->providers;
+                       current != NULL;
+                       current = current->next
+               ) {
+                       if (current->fEnabled) {
+                               current->f->C_Initialize (NULL);
+                       }
                }
        }