diff -Nru asterisk-1.4.18.org/configure.ac asterisk-1.4.18/configure.ac
--- asterisk-1.4.18.org/configure.ac	2008-01-16 02:13:27.000000000 +0100
+++ asterisk-1.4.19.1/configure.ac	2008-03-02 19:33:55.000000000 +0100
@@ -884,7 +884,7 @@
 
 AST_EXT_LIB_CHECK([SQLITE], [sqlite], [sqlite_exec], [sqlite.h])
 
-AST_EXT_LIB_CHECK([OPENSSL], [ssl], [ssl2_connect], [openssl/ssl.h], [-lcrypto])
+AST_EXT_LIB_CHECK([OPENSSL], [ssl], [ssl23_connect], [openssl/ssl.h], [-lcrypto])
 if test "$PBX_OPENSSL" = "1";
 then
     AST_EXT_LIB_CHECK([OSPTK], [osptk], [OSPPCryptoDecrypt], [osp/osp.h], [-lcrypto -lssl])
