$OpenBSD: patch-configure,v 1.11 2014/05/28 13:37:25 gonzalo Exp $
--- configure.orig	Sun May  4 15:47:09 2014
+++ configure	Tue May 13 08:42:28 2014
@@ -14132,7 +14132,7 @@ fi
 
 
 if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then
-    OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
+    OPENSSL_LIBS="-L$openssl_prefix/lib -lssl -lcrypto"
     OPENSSL_CFLAGS="-I$openssl_prefix/include"
 else
     # Extract the first word of "pkg-config", so it can be a program name with args.
@@ -14185,7 +14185,7 @@ fi
         else
             openssl_prefix="$prefix"
         fi
-        OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
+        OPENSSL_LIBS="-L$openssl_prefix/lib -lssl -lcrypto"
         OPENSSL_CFLAGS="-I$openssl_prefix/include"
     fi
 fi
