[macruby-changes] [MacRuby/MacRuby] 9d6846: fixed ASN1::Boolean encoding issue for OpenSSL 1.0...

GitHub noreply at github.com
Wed Jul 11 03:42:53 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/MacRuby/MacRuby
  Commit: 9d684693b2e6dc31023590ec7fbdff90a9831c64
      https://github.com/MacRuby/MacRuby/commit/9d684693b2e6dc31023590ec7fbdff90a9831c64
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-07-11 (Wed, 11 Jul 2012)

  Changed paths:
    M ext/openssl/ossl_asn1.c

  Log Message:
  -----------
  fixed ASN1::Boolean encoding issue for OpenSSL 1.0.0 compatibility

ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which means 'true'.

ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false' but OpenSSL >= 1.0.0 treats it as 'true'.  ruby-ossl was using 0x100 for 'false' for backward compatibility.  Just use 0x0 forthe case OpenSSL >= OpenSSL 0.9.7.


  Commit: f61faf5d34bf16cfb8d77ab9bd8e5a8e82495d6e
      https://github.com/MacRuby/MacRuby/commit/f61faf5d34bf16cfb8d77ab9bd8e5a8e82495d6e
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-07-11 (Wed, 11 Jul 2012)

  Changed paths:
    M ext/openssl/ossl_x509name.c

  Log Message:
  -----------
  id_aref's type is ID


  Commit: e0250bdd74dcb03d0e5ef2656de6b8c2852962b0
      https://github.com/MacRuby/MacRuby/commit/e0250bdd74dcb03d0e5ef2656de6b8c2852962b0
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-07-11 (Wed, 11 Jul 2012)

  Changed paths:
    M ext/openssl/extconf.rb
    M ext/openssl/ossl_ssl.c

  Log Message:
  -----------
  function check of SSLv2 is executed


  Commit: b21b899ed3c7fff8513c5d78f6733bcdf55baa9e
      https://github.com/MacRuby/MacRuby/commit/b21b899ed3c7fff8513c5d78f6733bcdf55baa9e
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-07-11 (Wed, 11 Jul 2012)

  Changed paths:
    M ext/openssl/extconf.rb
    M ext/openssl/ossl.c
    M ext/openssl/ossl.h
    M ext/openssl/ossl_config.c
    M ext/openssl/ossl_engine.c
    M ext/openssl/ossl_pkcs7.c
    M ext/openssl/ossl_ssl.c
    M ext/openssl/ossl_ssl_session.c
    M ext/openssl/ossl_x509attr.c
    M ext/openssl/ossl_x509crl.c

  Log Message:
  -----------
  add to support for OpenSSL 1.0.0


  Commit: b4fe1a51b1b7b3889b15d8682c9d301db0693b97
      https://github.com/MacRuby/MacRuby/commit/b4fe1a51b1b7b3889b15d8682c9d301db0693b97
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-07-11 (Wed, 11 Jul 2012)

  Changed paths:
    M ext/openssl/ossl_x509ext.c

  Log Message:
  -----------
  fix compile error when !HAVE_X509V3_SET_NCONF


Compare: https://github.com/MacRuby/MacRuby/compare/7da3aa4c3eed...b4fe1a51b1b7


More information about the macruby-changes mailing list