Subject: | Use SSL_library_init() before doing anything |
Hello,
without the SSL_library_init() before you will get a segfault with openssl 0.9.8a
diff -urN crypt-ssleay-0.51/debian/changelog x/crypt-ssleay-0.51/debian/changelog
--- crypt-ssleay-0.51/debian/changelog 2005-10-22 23:58:03.000000000 -0700
+++ x/crypt-ssleay-0.51/debian/changelog 2005-10-22 23:57:45.000000000 -0700
@@ -1,3 +1,10 @@
+crypt-ssleay (0.51-4.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Use SSL_library_init() before doing anything. closes: #334938, #334935
+
+ -- Joshua Kwan <joshk@triplehelix.org> Sat, 22 Oct 2005 23:53:44 -0700
+
crypt-ssleay (0.51-4) unstable; urgency=low
* added missing ${shlibs:Depends}; Thanks Matej
diff -urN crypt-ssleay-0.51/SSLeay.xs x/crypt-ssleay-0.51/SSLeay.xs
--- crypt-ssleay-0.51/SSLeay.xs 2003-05-27 23:55:02.000000000 -0700
+++ x/crypt-ssleay-0.51/SSLeay.xs 2005-10-22 23:57:45.000000000 -0700
@@ -105,6 +105,8 @@
static int bNotFirstTime;
char buf[1024];
int rand_bytes_read;
+
+ SSL_library_init();
if(!bNotFirstTime) {
SSLeay_add_all_algorithms();