Advertisement
Guest User

Untitled

a guest
May 30th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. diff --git a/ChangeLog b/ChangeLog
  2. index 6a36633..614eb99 100644
  3. --- a/ChangeLog
  4. +++ b/ChangeLog
  5. @@ -1,3 +1,16 @@
  6. +Sat Jul 6 07:37:43 2013 Martin Bosslet <Martin.Bosslet@gmail.com>
  7. +
  8. + * ext/openssl/ossl_pkey_ec.c: Ensure compatibility to builds of
  9. + OpenSSL with OPENSSL_NO_EC2M defined, but OPENSSL_NO_EC not
  10. + defined.
  11. + * test/openssl/test_pkey_ec.rb: Iterate over built-in curves
  12. + (and assert their non-emptiness!) instead of hard-coding them, as
  13. + this may cause problems with respect to the different availability
  14. + of individual curves in individual OpenSSL builds.
  15. + [ruby-core:54881] [Bug #8384]
  16. +
  17. + Thanks to Vit Ondruch for providing the patch!
  18. +
  19. Thu Jun 27 20:55:23 2013 URABE Shyouhei <shyouhei@ruby-lang.org>
  20.  
  21. * test/openssl/test_ssl.rb: Oops, sorry!
  22. diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c
  23. index cbdad3f..d517b58 100644
  24. --- a/ext/openssl/ossl_pkey_ec.c
  25. +++ b/ext/openssl/ossl_pkey_ec.c
  26. @@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
  27. method = EC_GFp_mont_method();
  28. } else if (id == s_GFp_nist) {
  29. method = EC_GFp_nist_method();
  30. +#if !defined(OPENSSL_NO_EC2M)
  31. } else if (id == s_GF2m_simple) {
  32. method = EC_GF2m_simple_method();
  33. +#endif
  34. }
  35.  
  36. if (method) {
  37. @@ -811,8 +813,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
  38.  
  39. if (id == s_GFp) {
  40. new_curve = EC_GROUP_new_curve_GFp;
  41. +#if !defined(OPENSSL_NO_EC2M)
  42. } else if (id == s_GF2m) {
  43. new_curve = EC_GROUP_new_curve_GF2m;
  44. +#endif
  45. } else {
  46. rb_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m");
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement