nobu
14c97cf9b6
* ext/dl/extconf.rb: clang does not use -fno-defer-pop during compilation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 16:41:08 +00:00
nobu
96ab37015e
* ext/dl/dl.h (ALIGN_OF): use offsetof().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 16:30:43 +00:00
nobu
196151158f
* ext/dl/dl.h (DLALIGN): round up at once and get rid of overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 16:29:08 +00:00
nobu
5ee0135a2f
* test/ruby/envutil.rb (assert_no_memory_leak): new assertion to
...
check memory leak by invoking child ruby process and watch its
memory size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 15:47:11 +00:00
svn
ba89c7d70e
* 2012-02-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 15:16:04 +00:00
nobu
d77b2387cf
* ext/fiddle/fiddle.c (Init_fiddle): declare in modern style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 15:15:57 +00:00
nagachika
42144fc3bb
* test/pathname/test_pathname.rb (test_binread): add assertion to
...
check encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 14:44:10 +00:00
akr
3b1276eb39
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 13:18:26 +00:00
kazu
c7f16b8662
fix typos
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:53:04 +00:00
nobu
f90f02ab20
* ext/dl/dl.c (Init_dl): fix mangled documnet.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:48:22 +00:00
usa
71837f629e
* test/ruby/memory_status.rb (Memory::Win32): 64bit support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:11:23 +00:00
usa
b2ba3242ea
* ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):
...
currenly pack/unpack does not accept "q!" and "Q!".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:10:26 +00:00
usa
da098bd36e
* ext/fiddle/conversions.c (value_to_generic): src is not guranteed as
...
a Bignum if the type is LONG_LONG. it may be a Fixnum if the value
is small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:03:07 +00:00
nobu
57b2175207
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 03:25:07 +00:00
usa
70b504badb
* ext/dl/lib/types.rb: Win64 support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 02:32:58 +00:00
naruse
7bde0843a2
* test/pathname/test_pathname.rb: not read but binread.
...
patched by Benoit Daloze, [ruby-core:42440] [Bug #5984 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 19:13:14 +00:00
naruse
7fa3f1c5a9
FreeBSD needs multiple -o.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 18:29:52 +00:00
tenderlove
ee827e52a7
eliminate `shadowing outer local variable - name` warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 18:03:51 +00:00
svn
bbc50e2a28
* 2012-02-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 15:44:44 +00:00
akr
de25f35c98
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 15:44:41 +00:00
nobu
fc018c9b34
* test/-ext-/string/test_modify_expand.rb: test for r34492.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 13:35:27 +00:00
nobu
83c7d9df2b
* string.c (rb_str_modify_expand): fix memory leak.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 13:30:04 +00:00
naruse
54b90b7be8
Fix condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 11:47:00 +00:00
naruse
f75a30776c
"street" for X509 Name is not supported before 0.9.8m.
...
It is added openssl/crypto/objects/obj_mac.h 1.83.
http://cvs.openssl.org/rlog?f=openssl/crypto/objects/obj_mac.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 09:49:36 +00:00
nahi
3ff2f9f3a3
* ext/openssl/ossl_ssl.c: Add SSL constants and allow to unset SSL
...
option to prevent BEAST attack. See [Bug #5353 ].
In OpenSSL, OP_DONT_INSERT_EMPTY_FRAGMENTS is used to prevent
TLS-CBC-IV vulunerability described at
http://www.openssl.org/~bodo/tls-cbc.txt
It's known issue of TLSv1/SSLv3 but it attracts lots of attention
these days as BEAST attack. (CVE-2011-3389)
Until now ossl sets OP_ALL at SSLContext allocation and call
SSL_CTX_set_options at connection. SSL_CTX_set_options updates the
value by using |= so bits set by OP_ALL cannot be unset afterwards.
This commit changes to call SSL_CTX_set_options only 1 time for each
SSLContext. It sets the specified value if SSLContext#options= are
called and sets OP_ALL if not.
To help users to unset bits in OP_ALL, this commit also adds several
constant to SSL such as
OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS. These constants were
not exposed in Ruby because there's no way to unset bits in OP_ALL
before.
Following is an example to enable 0/n split for BEAST prevention.
ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
* test/openssl/test_ssl.rb: Test above option exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 05:27:14 +00:00
emboss
45706e70c9
* ext/openssl/ossl_x509name.c: Use the numerical representation of
...
unrecognized OIDs instead of the sn "UNDEF".
* test/openssl/test_x509name.rb: Add tests for the fixed behavior.
Patch provided by Paul Kehrer, thanḱ you!
[ruby-core:41769] [Feature #5787 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 04:19:33 +00:00
naruse
1a991ffebc
* tool/merger.rb: don't abort, update first.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 01:04:07 +00:00
emboss
460c8907c9
* ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString.
...
Thanks to Mantas Mikulenas for noticing and providing a patch!
[ruby-core:42358] [Bug #5972 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 01:03:16 +00:00
svn
539d6ba2fa
* 2012-02-08
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 00:29:31 +00:00
emboss
aa3854e33d
* ext/openssl/ossl_cipher.c: Add warning about key as IV.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 00:29:26 +00:00
ayumin
89a2a10508
* error.c (exc_inspect): Fix typo. patch from Trent Ogren
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 11:13:40 +00:00
nobu
4a43f9203b
* st.c: refactor packed entries using structs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 10:37:40 +00:00
nobu
cf1a22fdf9
* st.c (st_update): table can be unpacked in the callback.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:52:15 +00:00
nobu
af01b0fb07
* ext/-test-/st/numhash/numhash.c (numhash_alloc): free st_table.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:43:49 +00:00
svn
d82aafd1b0
* 2012-02-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:29:27 +00:00
nobu
97c3c98762
* st.c (st_foreach): should not yield same pair when checking
...
after unpacking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:29:20 +00:00
naruse
b33dc193c8
* tool/merger.rb: abort if the working directory is dirty.
...
* tool/merger.rb: update the working directory after commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:55:56 +00:00
svn
730d3c566c
* 2012-02-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-05 15:17:54 +00:00
naruse
b346d7a69c
* encoding.c (rb_enc_compatible): return ASCII-8BIT even if 2nd string
...
is ascii only string. [ruby-core:42354] [Bug #5968 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-05 15:17:50 +00:00
svn
546eeb5f4b
* 2012-02-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-04 13:12:50 +00:00
kazu
40f4c9291b
add ML ref
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-04 13:12:45 +00:00
drbrain
42ffb2ed15
* lib/webrick.rb: Moved proxy rewriting to WEBrick::HTTPProxy.
...
* lib/webrick/httpproxy.rb: Add examples of creating a proxy server
and response rewriting using HTTPProxy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 23:17:24 +00:00
drbrain
30f0e97ef0
* ext/openssl/ossl_x509store.c: Add class documentation for
...
OpenSSL::X509::Store
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 22:54:10 +00:00
svn
3d14e356a8
* 2012-02-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 15:55:12 +00:00
kazu
ca0bb51887
* test/net/http/test_https_proxy.rb
...
(HTTPSProxyTest#test_https_proxy_authentication):
add workaround to avoid to hang up without openssl.
see #5786
* test/resolv/test_dns.rb (TestResolvDNS#test_query_ipv4_address):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 15:55:07 +00:00
kou
ca77bce66d
* lib/rexml/parsers/baseparser.rb: use meaningful name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 12:48:45 +00:00
kou
92cecf79b4
* lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:
...
fix the default xml namespace URI validation.
Reported by Miho Hiramatsu. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 12:42:27 +00:00
akr
5525d82134
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 11:51:25 +00:00
naruse
2a6ccf6c13
* io.c (argf_next_argv): reset ARGF.next_p on ARGV.replace.
...
r34409 breaks replacing ARGV.
[ruby-dev:45160] [Bug #5952 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 08:52:55 +00:00
usa
a267b9512a
* test/net/http/test_http.rb (TestNetHTTPKeepAlive#*): remove debug
...
output.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 07:22:17 +00:00