Last active
August 29, 2015 14:19
-
-
Save alanivey/1a151c9d8d0b81f039d3 to your computer and use it in GitHub Desktop.
Ruby 1.8.7-p374 and 1.8.7-p375, ruby-build, CentOS 7
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
diff --git a/ChangeLog b/ChangeLog | |
index 6a36633..614eb99 100644 | |
--- a/ChangeLog | |
+++ b/ChangeLog | |
@@ -1,3 +1,16 @@ | |
+Sat Jul 6 07:37:43 2013 Martin Bosslet <[email protected]> | |
+ | |
+ * ext/openssl/ossl_pkey_ec.c: Ensure compatibility to builds of | |
+ OpenSSL with OPENSSL_NO_EC2M defined, but OPENSSL_NO_EC not | |
+ defined. | |
+ * test/openssl/test_pkey_ec.rb: Iterate over built-in curves | |
+ (and assert their non-emptiness!) instead of hard-coding them, as | |
+ this may cause problems with respect to the different availability | |
+ of individual curves in individual OpenSSL builds. | |
+ [ruby-core:54881] [Bug #8384] | |
+ | |
+ Thanks to Vit Ondruch for providing the patch! | |
+ | |
Thu Jun 27 20:55:23 2013 URABE Shyouhei <[email protected]> | |
* test/openssl/test_ssl.rb: Oops, sorry! | |
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c | |
index cbdad3f..d517b58 100644 | |
--- a/ext/openssl/ossl_pkey_ec.c | |
+++ b/ext/openssl/ossl_pkey_ec.c | |
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) | |
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) { | |
@@ -811,8 +813,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) | |
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 { | |
rb_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m"); | |
} |
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
diff --git a/ChangeLog b/ChangeLog | |
index 8450f5c..3bab20c 100644 | |
--- a/ChangeLog | |
+++ b/ChangeLog | |
@@ -3,6 +3,19 @@ Fri Nov 22 12:43:52 2013 Nobuyoshi Nakada <[email protected]> | |
* util.c (ruby_strtod): ignore too long fraction part, which does not | |
affect the result. | |
+Sat Jul 6 07:37:43 2013 Martin Bosslet <[email protected]> | |
+ | |
+ * ext/openssl/ossl_pkey_ec.c: Ensure compatibility to builds of | |
+ OpenSSL with OPENSSL_NO_EC2M defined, but OPENSSL_NO_EC not | |
+ defined. | |
+ * test/openssl/test_pkey_ec.rb: Iterate over built-in curves | |
+ (and assert their non-emptiness!) instead of hard-coding them, as | |
+ this may cause problems with respect to the different availability | |
+ of individual curves in individual OpenSSL builds. | |
+ [ruby-core:54881] [Bug #8384] | |
+ | |
+ Thanks to Vit Ondruch for providing the patch! | |
+ | |
Thu Jun 27 20:55:23 2013 URABE Shyouhei <[email protected]> | |
* test/openssl/test_ssl.rb: Oops, sorry! | |
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c | |
index cbdad3f..d517b58 100644 | |
--- a/ext/openssl/ossl_pkey_ec.c | |
+++ b/ext/openssl/ossl_pkey_ec.c | |
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) | |
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) { | |
@@ -811,8 +813,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self) | |
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 { | |
rb_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