aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* add comment.akr2012-02-231-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: unused macro removed.akr2012-02-231-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.akr2012-02-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: use DBM_SUFFIX only to detect header ofakr2012-02-231-6/+4
| | | | | | | Berkeley DB. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c: use defined() to suppress a warning.akr2012-02-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: refactored.akr2012-02-221-19/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: try to distinguish curses_version is aakr2012-02-222-1/+46
| | | | | | | function or variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: show the chosen header and library.akr2012-02-221-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: refactored.akr2012-02-221-20/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: check DBM_SUFFIX for Mac OS X.akr2012-02-212-2/+9
| | | | | | | Its ndbm.h doesn't include db.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_initialize): disable Berkeley DB error messages.akr2012-02-212-0/+11
| | | | | | | | | | * ext/dbm/extconf.rb: check DBC type for above. [ruby-dev:45269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): use curses_version() forakr2012-02-211-1/+1
| | | | | | | Curses::VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.akr2012-02-201-12/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: fold too long lines.akr2012-02-201-2/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (Init_curses): define Curses::VERSION.akr2012-02-201-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/extconf.rb: restore $libs and $defs for eachakr2012-02-201-4/+22
| | | | | | | header/library choice. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: weaken header/library consistency check if db isakr2012-02-201-1/+1
| | | | | | | | | | | | "ndbm". It seems several (possibly historical) distributions provide libndbm. However the content of libndbm vary: Berkeley DB, GDBM or even 4.3BSD NDBM. (Mandriva, Tru64 UNIX, OpenSuSE, SCO OpenServer, ...) "ndbm" is not searched automatically now (dblib doesn't contain it) but configure --with-dbm-type=ndbm choose libndbm and ndbm.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: refine variable names.akr2012-02-201-14/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: show header and library found.akr2012-02-191-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (Init_dbm): refine DBM::VERSION definition.akr2012-02-192-11/+22
| | | | | | | | * ext/dbm/extconf.rb: provide RUBYDBM_GDBM_HEADER macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: detect GDBM's ndbm.h by testing dbm_clearerr isakr2012-02-182-3/+29
| | | | | | | | an empty macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: don't choose 'dbm' if _GDB_H_ is defined whichakr2012-02-181-0/+7
| | | | | | | | | is available since GDBM 1.9 because 'gdbm_compat' is appropriate choise since GDBM 1.8.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb (dblib): prefer recent GDBM over older GDBM.akr2012-02-182-32/+68
| | | | | | | | | | | | | | | (have_declared_libvar): new function to check a declared variable exists in a library. (have_undeclared_libvar): renamed from renamed from have_libvar. (headers.db_check2): check that GDBM version variable if GDBM header is choosen. * ext/dbm/dbm.c (Init_dbm): use HAVE_DECLARED_LIBVAR_GDBM_VERSION and HAVE_UNDECLARED_LIBVAR_GDBM_VERSION macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (DBM::VERSION): define it by detecting _GDBM_H_ orakr2012-02-181-0/+4
| | | | | | | | _DBM_IOERR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: remove dbm.akr2012-02-171-1/+1
| | | | | | | forgotten in r34666. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: refine header/libraty mismatch detection.akr2012-02-171-3/+42
| | | | | | | | check only for ndbm.h except libc. check _GDBM_H_ for gdbm. check _DBM_IOERR for the original ndbm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: don't check libdbm. It is not a ndbmakr2012-02-171-2/+1
| | | | | | | | implementation. (libdbm in Version 7 Unix is database library for single database per process.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: refactored to split too long conditions.akr2012-02-161-26/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: check _DB_H_ macro unavailable exceptakr2012-02-161-1/+2
| | | | | | | Berkeley DB library. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/closure.c (callback): deal with unsinged integers.nobu2012-02-154-30/+73
| | | | | | | | | [ruby-core:42458][Bug #5991][Bug #6022] * ext/fiddle/conversions.c (value_to_generic, generic_to_value): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/closure.c (callback): same as r34506.nobu2012-02-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (Init_zlib): Added Zlib::TEXT and note thatdrbrain2012-02-151-0/+10
| | | | | | | Zlib::ASCII is deprecated in zlib 1.2.3 and newer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: Move constant descriptions to constants. Removedrbrain2012-02-151-199/+97
| | | | | | | extra comment block at the top of Init_zlib(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (Init_zlib): Added Zlib::FIXED and Zlib::RLEdrbrain2012-02-151-1/+21
| | | | | | | | strategies. * NEWS: Add note about the new Zlib constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: Improve documentation. [ruby-trunk - Bug #5948]drbrain2012-02-151-112/+169
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc.akr2012-02-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (rb_inflate_add_dictionary): Addeddrbrain2012-02-111-3/+37
| | | | | | | | Zlib::Inflate#add_dictionary to allow users to pre-specify for using during #inflate. [ruby-trunk - Feature #5937] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (do_inflate): Inflate more data if buffered datadrbrain2012-02-111-2/+18
| | | | | | | | exists. Allows Zlib::Inflate#set_dictionary to work. [ruby-trunk - Bug #5929] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c: removed external encoding setter, allow parsertenderlove2012-02-092-24/+8
| | | | | | | | to be reused. * ext/psych/lib/psych/parser.rb: added external encoding setter. * test/psych/test_parser.rb: test parser reuse git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/extconf.rb: clang does not use -fno-defer-pop during compilation.nobu2012-02-091-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.h (ALIGN_OF): use offsetof().nobu2012-02-091-17/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.h (DLALIGN): round up at once and get rid of overflow.nobu2012-02-091-3/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/fiddle.c (Init_fiddle): declare in modern style.nobu2012-02-091-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (Init_dl): fix mangled documnet.nobu2012-02-091-16/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):usa2012-02-091-2/+2
| | | | | | | 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
* * ext/fiddle/conversions.c (value_to_generic): src is not guranteed asusa2012-02-091-1/+1
| | | | | | | | 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
* * remove trailing spaces.nobu2012-02-092-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/types.rb: Win64 support.usa2012-02-091-1/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_modify_expand): fix memory leak.nobu2012-02-081-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c: Add SSL constants and allow to unset SSLnahi2012-02-081-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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