Skip to content

Instantly share code, notes, and snippets.

@romanbsd
Created September 11, 2012 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romanbsd/3697412 to your computer and use it in GitHub Desktop.
Save romanbsd/3697412 to your computer and use it in GitHub Desktop.
Ruby 1.9.3 openssl dynamic modules support
--- ext/openssl/extconf.rb.orig 2012-09-11 13:32:19.000000000 +0400
+++ ext/openssl/extconf.rb 2012-09-11 13:32:37.000000000 +0400
@@ -115,6 +115,7 @@
have_func("ENGINE_get_digest")
have_func("ENGINE_get_cipher")
have_func("ENGINE_cleanup")
+ have_func("ENGINE_load_dynamic")
have_func("ENGINE_load_4758cca")
have_func("ENGINE_load_aep")
have_func("ENGINE_load_atalla")
--- ext/openssl/ossl_engine.c.orig 2012-09-11 14:16:19.000000000 +0400
+++ ext/openssl/ossl_engine.c 2012-09-11 14:16:08.000000000 +0400
@@ -60,10 +60,10 @@
return Qtrue;
}
StringValue(name);
-#ifndef OPENSSL_NO_STATIC_ENGINE
#if HAVE_ENGINE_LOAD_DYNAMIC
OSSL_ENGINE_LOAD_IF_MATCH(dynamic);
#endif
+#ifndef OPENSSL_NO_STATIC_ENGINE
#if HAVE_ENGINE_LOAD_CSWIFT
OSSL_ENGINE_LOAD_IF_MATCH(cswift);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment