Skip to content

Instantly share code, notes, and snippets.

@jkinred
Last active December 28, 2015 11:29
Show Gist options
  • Save jkinred/7493540 to your computer and use it in GitHub Desktop.
Save jkinred/7493540 to your computer and use it in GitHub Desktop.
Patch Ruby 1.8.7-p357 to build on Fedora 19.
--- 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