Skip to content
Commits on Jul 11, 2012
  1. @Watson1978
  2. @Watson1978
  3. @Watson1978
  4. @Watson1978

    id_aref's type is ID

    Watson1978 committed Jul 11, 2012
  5. @Watson1978

    fixed ASN1::Boolean encoding issue for OpenSSL 1.0.0 compatibility

    Watson1978 committed Jul 11, 2012
    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.
Commits on Feb 25, 2012
  1. @Watson1978

    merge "Add SSL constants and allow to unset SSL

    Watson1978 committed Feb 25, 2012
      option to prevent BEAST attack" from CRuby
    see ruby/ruby@85fd9aa#ext/openssl
Commits on Nov 26, 2011
  1. @Watson1978
  2. @Watson1978
Commits on Jul 29, 2011
  1. @Watson1978
  2. @Watson1978
  3. @Watson1978
Commits on Jun 2, 2011
  1. @ferrous26

    Banish old .cvsignore files

    ferrous26 committed May 20, 2011
Commits on May 10, 2011
  1. @Watson1978
Commits on Apr 12, 2011
  1. @Watson1978
Commits on Jan 18, 2011
  1. @Watson1978

    OpenSSL::BN.new accepts only Strings, so call Integer#to_s(16). Merge…

    Watson1978 committed Jan 18, 2011
    …d from CRuby 1.9 r29407.
    
    see ruby/ruby@3a633b8
    
    Test Script:
    {{{
    require 'openssl'
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    assert_equal(999.to_bn, OpenSSL::BN.new(999.to_s(16), 16))
    
    puts :ok
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5179 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jan 8, 2011
  1. include/ruby/macruby.h -> macruby_internal.h

    Laurent Sansonetti committed Jan 8, 2011
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5137 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jan 5, 2011
  1. @Watson1978
  2. @Watson1978

    Fixed a segfault of OpenSSL::SSL::SSLSocket#cert. raise exception if …

    Watson1978 committed Jan 5, 2011
    …pointer is invalid. Merged from CRuby 1.9 r29784.
    
    see ruby/ruby@fb7a337
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5120 23306eb0-4c56-4727-a40e-e92c0eb68959
  3. @Watson1978

    Fixed a bug of OpenSSL::BN#prime?. fix comparison with rb_scan_args. …

    Watson1978 committed Jan 5, 2011
    …Merged from CRuby 1.9 r29237.
    
    see ruby/ruby@6ebb345
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5115 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 28, 2010
  1. @Watson1978

    Added the initialization of store->ex_data.sk in ossl_x509store_initi…

    Watson1978 committed Dec 28, 2010
    …alize. Merged from CRuby1.9 r27064.
    
    see ruby/ruby@1ab5d39
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5092 23306eb0-4c56-4727-a40e-e92c0eb68959
  2. @Watson1978

    Fixed the typo. will use the API for BSTRING.

    Watson1978 committed Dec 28, 2010
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5091 23306eb0-4c56-4727-a40e-e92c0eb68959
  3. @Watson1978
  4. @Watson1978

    Fixed the typo. I forgot to change rb_str_set_len into rb_bstr_resize…

    Watson1978 committed Dec 28, 2010
    … with r5084.
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5089 23306eb0-4c56-4727-a40e-e92c0eb68959
  5. @Watson1978

    Fixed the typo. had better use a rb_bstr_resize.

    Watson1978 committed Dec 28, 2010
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5088 23306eb0-4c56-4727-a40e-e92c0eb68959
  6. @Watson1978

    Fixed the Bus Error within OpenSSL::PKey::DSA#syssign.

    Watson1978 committed Dec 28, 2010
    Test Script:
    {{{
    require 'openssl'
    
    dsa = OpenSSL::PKey::DSA.new(512)
    p dsa.syssign('foo')
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5087 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 27, 2010
  1. @Watson1978

    Fixed the Bus Error within OpenSSL::PKCS5.pbkdf2_hmac(_sha1).

    Watson1978 committed Dec 27, 2010
    Test Script:
    {{{
    require 'openssl'
    
    p OpenSSL::PKCS5.pbkdf2_hmac_sha1("password", "saltsalt", 1000, 16)
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5086 23306eb0-4c56-4727-a40e-e92c0eb68959
  2. @Watson1978

    Fixed the Bus Error within OpenSSL::X509::Attribute#to_der.

    Watson1978 committed Dec 27, 2010
    Test Script:
    {{{
    require 'openssl'
    
    def create_ext_req(exts)
      ef = OpenSSL::X509::ExtensionFactory.new
      exts = exts.collect{|e| ef.create_extension(*e) }
      return OpenSSL::ASN1::Set([OpenSSL::ASN1::Sequence(exts)])
    end
    
    exts = [
            ["keyUsage", "Digital Signature, Key Encipherment", true],
            ["subjectAltName", "email:watson1978@gmail.com", false],
           ]
    
    attrval = create_ext_req(exts)
    p OpenSSL::X509::Attribute.new("extReq", attrval).to_der
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5085 23306eb0-4c56-4727-a40e-e92c0eb68959
  3. @Watson1978

    Fixed the Bus Error within OpenSSL::PKey::DH#compute_key.

    Watson1978 committed Dec 27, 2010
    Test Script:
    {{{
    require 'openssl'
    
    dh = OpenSSL::PKey::DH.generate(128, 5)
    raise "bad DH parameter" unless dh.params_ok?
    
    dh1 = dh
    dh2 = OpenSSL::PKey::DH.new(dh)
    dh1.generate_key!
    dh2.generate_key!
    key1 = dh1.compute_key(dh2.pub_key)
    key2 = dh1.compute_key(dh1.pub_key)
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5084 23306eb0-4c56-4727-a40e-e92c0eb68959
  4. @Watson1978

    Fixed the Bus Error within p OpenSSL::BN#to_s.

    Watson1978 committed Dec 27, 2010
    Test Script:
    {{{
    require 'openssl'
    
    p OpenSSL::BN.rand(128).to_s(0)
    p OpenSSL::BN.rand(128).to_s(2)
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5083 23306eb0-4c56-4727-a40e-e92c0eb68959
  5. @Watson1978

    Fixed the typo. had better use a rb_bstr_bytes.

    Watson1978 committed Dec 27, 2010
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5082 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 16, 2010
  1. @Watson1978

    Fixed the Bus error within ossl_pkey_sign.

    Watson1978 committed Dec 16, 2010
    Test:
    {{{
    On MacRuby source directory:
    $ cd test/test-mri/
    $ macruby -r require_relative.rb test/rubygems/test_gem_package_tar_output.rb
    }}}
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5034 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Oct 4, 2010
  1. @Watson1978

    Should pass an Algorithm name into Digest.digest and Digest.hexdigest.

    Watson1978 committed Oct 4, 2010
     - Fixed the #924
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4570 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Sep 14, 2010
  1. omg another openssl crasher

    Laurent Sansonetti committed Sep 14, 2010
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4513 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Sep 13, 2010
  1. more openssl fixes

    Laurent Sansonetti committed Sep 13, 2010
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4510 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Sep 11, 2010
  1. fix more openssl crashers

    Laurent Sansonetti committed Sep 11, 2010
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4509 23306eb0-4c56-4727-a40e-e92c0eb68959
Something went wrong with that request. Please try again.