Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 <Martin.Bosslet@gmail.com>
- +
- + * 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 <shyouhei@ruby-lang.org>
- * 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");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement