Skip to content

Instantly share code, notes, and snippets.

@eric1234
Forked from thescouser89/1.8.7-rbenv.patch
Last active August 29, 2015 14:04
Show Gist options
  • Save eric1234/e23d63f99427b39787ca to your computer and use it in GitHub Desktop.
Save eric1234/e23d63f99427b39787ca to your computer and use it in GitHub Desktop.
Like the original 1.8.7 patch but for 2.0.0-p0
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -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");
}
@mingt
Copy link

mingt commented Jan 10, 2015

This patch can also be applied to 'rbenv install 1.9.3-p0'.

curl -fsSL https://gist.githubusercontent.com/eric1234/e23d63f99427b39787ca/raw/7859c4b08c9ae7c0cebc69d42cce2b553838dcf0/2.0.0-p0-rbenv.patch | rbenv install --patch 1.9.3-p0

OS: centos 6.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment