aboutsummaryrefslogtreecommitdiffstats
path: root/ossl.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-01-10 00:43:38 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-01-10 00:43:38 +0000
commitc8c2b576e89e238a6aead38b3cc40a2d3f07f751 (patch)
treeb74df95f5df51dffcc40ba6b9df310f7f502dc4d /ossl.c
parentc7018dfc98fa5ef076caf6dc3186e7271a862be3 (diff)
downloadruby-openssl-history-c8c2b576e89e238a6aead38b3cc40a2d3f07f751.tar.gz
* OpenSSL 0.9.6c support (BN)
* MS_CALLBACK to ossl_pkey_*.c * Memory checking with OSSL_DEBUG * API doc style change
Diffstat (limited to 'ossl.c')
-rw-r--r--ossl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ossl.c b/ossl.c
index 16cd9f5..272e272 100644
--- a/ossl.c
+++ b/ossl.c
@@ -15,6 +15,9 @@
* implementation in strptime.c
*/
#ifndef HAVE_STRPTIME
+# ifndef HAVE_STRNCASECMP
+# include "./missing/strncasecmp.c"
+# endif
# include "./missing/strptime.c"
#endif
@@ -81,6 +84,13 @@ VALUE mPKCS7;
void
Init_openssl()
{
+#if defined(OSSL_DEBUG)
+ CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
+#endif
+
+ /*
+ * Init all digests, ciphers
+ */
OpenSSL_add_all_algorithms();
ERR_load_crypto_strings();