Last active
December 28, 2015 11:29
-
-
Save jkinred/7493540 to your computer and use it in GitHub Desktop.
Patch Ruby 1.8.7-p357 to build on Fedora 19.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- trunk/ext/openssl/ossl_pkey_ec.c 2013/07/05 22:16:09 41807 | |
+++ trunk/ext/openssl/ossl_pkey_ec.c 2013/07/05 22:46:42 41808 | |
@@ -762,8 +762,10 @@ | |
method = EC_GFp_mont_method(); | |
} else if (id == s_GFp_nist) { | |
method = EC_GFp_nist_method(); | |
+#if !defined(OPENSSL_NO_EC2M) | |
} else if (id == s_GF2m_simple) { | |
method = EC_GF2m_simple_method(); | |
+#endif | |
} | |
if (method) { | |
@@ -817,8 +819,10 @@ | |
if (id == s_GFp) { | |
new_curve = EC_GROUP_new_curve_GFp; | |
+#if !defined(OPENSSL_NO_EC2M) | |
} else if (id == s_GF2m) { | |
new_curve = EC_GROUP_new_curve_GF2m; | |
+#endif | |
} else { | |
ossl_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment