]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Version 2.1_rc8 v2.1_rc8
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 13 Jun 2008 07:53:51 +0000 (07:53 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 13 Jun 2008 07:53:51 +0000 (07:53 +0000)
On Windows, use -leay32 and -lssl32 to link with OpenSSL.

On Windows, bundle pkcs11-helper-1.06-beta1.

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

configure.ac
install-win32/build-pkcs11-helper.sh

index 9ca2c4e184952383da79d52f5b2c1a7eb01cfcaa..357e1a63a4cd794a9b4426ff95e642e1bde0f3e1 100644 (file)
@@ -611,7 +611,7 @@ fi
 dnl
 dnl Check if LoadLibrary exists on Windows
 dnl
-if test "${WIN32}" == "yes"; then
+if test "${WIN32}" = "yes"; then
    if test "$PLUGINS" = "yes"; then
        AC_TRY_LINK([
            #include <windows.h>
@@ -683,7 +683,11 @@ if test "$CRYPTO" = "yes"; then
                     ],
                     [
                        AC_DEFINE(USE_CRYPTO, 1, [Use OpenSSL crypto library])
-                       OPENVPN_ADD_LIBS(-lcrypto)
+                       if test "${WIN32}" = "yes"; then
+                         OPENVPN_ADD_LIBS(-leay32)
+                       else
+                         OPENVPN_ADD_LIBS(-lcrypto)
+                       fi
                        AC_CHECK_FUNCS(EVP_CIPHER_CTX_set_key_length)
 
                       dnl check for OpenSSL crypto acceleration capability
@@ -725,7 +729,11 @@ dnl
           [AC_MSG_ERROR([OpenSSL SSL headers not found.])]
       )
       AC_DEFINE(USE_SSL, 1, [Use OpenSSL SSL library])
-      OPENVPN_ADD_LIBS(-lssl)
+      if test "${WIN32}" = "yes"; then
+        OPENVPN_ADD_LIBS(-lssl32)
+      else
+        OPENVPN_ADD_LIBS(-lssl)
+      fi
    fi
 fi
 
index ca139f5dbe43aeb95430ccb76b75821eb5326fa1..fd336dff43848b3d96640492b48f90e0dfb3ebaf 100644 (file)
@@ -1,4 +1,4 @@
-F=pkcs11-helper-1.05
+F=pkcs11-helper-1.06-beta1
 OPENSSL_DIR=`pwd`/openssl-0.9.8h
 
 PKCS11_HELPER_DIR=`pwd`/pkcs11-helper
@@ -16,7 +16,7 @@ cd $F
         --disable-crypto-engine-nss \
         PKG_CONFIG=true \
         OPENSSL_CFLAGS="-I${OPENSSL_DIR}/include" \
-        OPENSSL_LIBS="-L${OPENSSL_DIR}/out -lcrypto"
+        OPENSSL_LIBS="-L${OPENSSL_DIR}/out -leay32"
 
 make
 make install DESTDIR="${PKCS11_HELPER_DIR}"