~ubuntu-branches/ubuntu/raring/ruby1.9.1/raring-security

« back to all changes in this revision

Viewing changes to ext/openssl/ossl_ssl.c

  • Committer: Package Import Robot
  • Author(s): Antonio Terceiro, Lucas Nussbaum, Daigo Moriwaki, James Healy, Antonio Terceiro
  • Date: 2012-06-02 07:42:28 UTC
  • mfrom: (21.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120602074228-09t2jgg1ozrsnnfo
Tags: 1.9.3.194-1
[ Lucas Nussbaum ]
* Add hurd-path-max.diff. Fixes FTBFS on Hurd. (Closes: #648055)

[ Daigo Moriwaki ]
* Removed debian/patches/debian/patches/sparc-continuations.diff,
  which the upstream has applied.
* debian/rules:
  - Bumped up tcltk_ver to 8.5.
  - Used chrpath for tcltklib.so to fix a lintian error,
    binary-or-shlib-defines-rpath.
* debian/control:
  - Suggests ruby-switch. (Closes: #654312)
  - Build-Depends: chrpath.
* debian/libruby1.9.1.symbols: Added a new symbol for
  rb_str_modify_expand@Base.
* debian/run-test-suites.bash:
  - Corrected options for test-all.
  - Enabled timeout to allow hang tests to be aborted.

[ James Healy ]
* New upstream release: 1.9.3p194 (Closes: #669582)
  + This release includes a fix for CVE-2011-0188 (Closes: #628451)
  + This release also does not segfault when running the test suite under
    amd64 (Closes: #674347)
* Enable hardened build flags (Closes: #667964)
* debian/control:
  - depend on specific version on coreutils
  - update policy version (no changes)

[ Antonio Terceiro ]
* debian/ruby1.9.1.postinst:
  + bump alternatives priority for `ruby` to 51 so that Ruby 1.9 has a
    higher priority than Ruby 1.8 (50).
  + bump alternatives priority for `gem` to 181 so that the Rubygems
    provided by Ruby 1.9 has priority over the one provided by the rubygems
    package.
* debian/control: added myself to Uploaders:
* debian/libruby1.9.1.symbols: update with new symbols added in 1.9.3p194
  upstream release.
* debian/manpages/*: fix references to command names with s/1.9/1.9.1/
* debian/rules: skip running DRB tests, since they seem to make the build
  hang. This should close #647296, but let's way and see. Also, with this do
  not need to timeout the test suite anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: ossl_ssl.c 32975 2011-08-15 01:20:27Z emboss $
 
2
 * $Id: ossl_ssl.c 34524 2012-02-09 17:04:41Z emboss $
3
3
 * 'OpenSSL for Ruby' project
4
4
 * Copyright (C) 2000-2002  GOTOU Yuuzou <gotoyuzo@notwork.org>
5
5
 * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
151
151
        ossl_raise(eSSLError, "SSL_CTX_new:");
152
152
    }
153
153
    SSL_CTX_set_mode(ctx, mode);
154
 
    SSL_CTX_set_options(ctx, SSL_OP_ALL);
155
154
    return Data_Wrap_Struct(klass, 0, ossl_sslctx_free, ctx);
156
155
}
157
156
 
643
642
    if(!NIL_P(val)) SSL_CTX_set_verify_depth(ctx, NUM2INT(val));
644
643
 
645
644
    val = ossl_sslctx_get_options(self);
646
 
    if(!NIL_P(val)) SSL_CTX_set_options(ctx, NUM2LONG(val));
 
645
    if(!NIL_P(val)) {
 
646
        SSL_CTX_set_options(ctx, NUM2LONG(val));
 
647
    }
 
648
    else {
 
649
        SSL_CTX_set_options(ctx, SSL_OP_ALL);
 
650
    }
647
651
    rb_obj_freeze(self);
648
652
 
649
653
    val = ossl_sslctx_get_sess_id_ctx(self);
1966
1970
    ossl_ssl_def_const(VERIFY_PEER);
1967
1971
    ossl_ssl_def_const(VERIFY_FAIL_IF_NO_PEER_CERT);
1968
1972
    ossl_ssl_def_const(VERIFY_CLIENT_ONCE);
1969
 
    /* Not introduce constants included in OP_ALL such as...
1970
 
     * ossl_ssl_def_const(OP_MICROSOFT_SESS_ID_BUG);
1971
 
     * ossl_ssl_def_const(OP_NETSCAPE_CHALLENGE_BUG);
1972
 
     * ossl_ssl_def_const(OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG);
1973
 
     * ossl_ssl_def_const(OP_SSLREF2_REUSE_CERT_TYPE_BUG);
1974
 
     * ossl_ssl_def_const(OP_MICROSOFT_BIG_SSLV3_BUFFER);
1975
 
     * ossl_ssl_def_const(OP_MSIE_SSLV2_RSA_PADDING);
1976
 
     * ossl_ssl_def_const(OP_SSLEAY_080_CLIENT_DH_BUG);
1977
 
     * ossl_ssl_def_const(OP_TLS_D5_BUG);
1978
 
     * ossl_ssl_def_const(OP_TLS_BLOCK_PADDING_BUG);
1979
 
     * ossl_ssl_def_const(OP_DONT_INSERT_EMPTY_FRAGMENTS);
 
1973
    /* Introduce constants included in OP_ALL.  These constants are mostly for
 
1974
     * unset some bits in OP_ALL such as:
 
1975
     *   ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
1980
1976
     */
 
1977
    ossl_ssl_def_const(OP_MICROSOFT_SESS_ID_BUG);
 
1978
    ossl_ssl_def_const(OP_NETSCAPE_CHALLENGE_BUG);
 
1979
    ossl_ssl_def_const(OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG);
 
1980
    ossl_ssl_def_const(OP_SSLREF2_REUSE_CERT_TYPE_BUG);
 
1981
    ossl_ssl_def_const(OP_MICROSOFT_BIG_SSLV3_BUFFER);
 
1982
    ossl_ssl_def_const(OP_MSIE_SSLV2_RSA_PADDING);
 
1983
    ossl_ssl_def_const(OP_SSLEAY_080_CLIENT_DH_BUG);
 
1984
    ossl_ssl_def_const(OP_TLS_D5_BUG);
 
1985
    ossl_ssl_def_const(OP_TLS_BLOCK_PADDING_BUG);
 
1986
    ossl_ssl_def_const(OP_DONT_INSERT_EMPTY_FRAGMENTS);
1981
1987
    ossl_ssl_def_const(OP_ALL);
1982
1988
#if defined(SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION)
1983
1989
    ossl_ssl_def_const(OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);