Commit graph

1732 commits

Author SHA1 Message Date
technorama
55180306dd * ext/openssl/ossl_ssl.c: Only show a warning if the default
DH callback is actually used.

* ext/openssl/ossl_rand.c: New method: random_add().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-27 01:50:50 +00:00
nobu
4e5d2b1190 * ext/readline/extconf.rb: should use have_func for functions instead
of have_var.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 03:36:37 +00:00
nobu
54e0b26ecf * ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS to
get rid of mixing $LDFLAGS and $ARCH_FLAG.

* lib/mkmf.rb (configuration): ditto.

* lib/mkmf.rb (create_makefile): support for extensions which has no
  shared object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-28 05:43:17 +00:00
suke
017429c76c ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17 05:25:09 +00:00
nobu
b257171671 * ext/iconv/iconv.c (iconv_iconv): also instance method needs to be
qualified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 08:41:37 +00:00
nobu
994bd271c0 * ext/iconv/iconv.c (Document-class): moved the simplest example to
the top.

* ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
  prefix for class method.  [ruby-core:13542]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16 08:03:36 +00:00
usa
c7070d378e * ext/curses/extconf.rb: check macro if cannot find func.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 10:51:07 +00:00
akr
c840ef5d09 rescue Errno::EWOULDBLOCK as well as Errno::EAGAIN in sample code in rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-23 07:42:26 +00:00
usa
d70762f577 * ext/openssl/lib/openssl/buffering.rb (read, readpartial): revert
r12496. handling EOF is a little differnt in ruby 1.8 and ruby 1.9.
	  [ruby-dev:31979]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 08:29:08 +00:00
akr
ddeb0a4183 * ext/socket/socket.c (s_accept_nonblock): make accepted fd
nonblocking.  [ruby-talk:274079]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-14 16:18:41 +00:00
gotoyuzo
b4b36c06fa * lib/net/http.rb, lib/open-uri.rb: remove
Net::HTTP#enable_post_connection_check.  [ruby-dev:31960]

* lib/net/imap.rb: hostname should be verified against server's
  indentity as persented in the server's certificate. [ruby-dev:31960]

* ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-08 11:16:54 +00:00
nobu
3d13252601 * ext/extmk.rb (extmake), lib/mkmf.rb (configuration): top_srcdir
should not prefixed with DESTDIR.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-26 14:54:40 +00:00
gotoyuzo
80865ba2db * lib/net/http.rb: an SSL verification (the server hostname should
be matched with its certificate's commonName) is added.
  this verification can be skipped by
  "Net::HTTP#enable_post_connection_check=(false)".
  suggested by Chris Clark <cclark at isecpartners.com>

* lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to
  perform SSL post connection check.

* ext/openssl/lib/openssl/ssl.c
  (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-23 22:21:42 +00:00
nobu
cfea253c0f * ext/stringio/stringio.c (strio_init): separate from strio_initialize
to share with strio_reopen properly.  [ruby-Bugs-13919]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-21 20:19:51 +00:00
nobu
02da16b167 * eval.c, intern.h, ext/thread/thread.c: should not free queue while
any live threads are waiting.  [ruby-dev:30653]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-20 18:05:40 +00:00
suke
1e0687444c * ext/win32ole/win32ole.c: add WIN32OLE#ole_activex_initialize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-31 23:19:16 +00:00
suke
763e41cbca * ext/win32ole/win32ole.c (ole_type_progid, reg_enum_key,
reg_get_val, ole_wc2mb): fix the bug. Thanks, arton. 
  [ruby-dev:31576]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-28 14:16:24 +00:00
matz
03785cd9b1 * ext/etc/etc.c (etc_getlogin): update documentation to note
security issue.  [ruby-Bugs-11821]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-27 10:16:25 +00:00
nobu
f80d24ee6f * ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-18 08:44:44 +00:00
nobu
3faef98a2a * ext/pty/pty.c (establishShell): handshaking before close slave
device.  [ruby-talk:263410]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 05:58:41 +00:00
nobu
0d197c00b3 * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): constified.
* ext/pty/pty.c (SlaveName): removed static buffer.

* ext/pty/expect_sample.rb: support for autologin.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-07 05:56:52 +00:00
nobu
344526082e * ext/extmk.rb (extmake): save all CONFIG values.
* ext/extmk.rb (extmake): remove mkmf.log at clean, and extconf.h at
  distclean, respectively.

* ext/extmk.rb: remove rdoc at clean, and installed list file at
  distclean, respectively.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-03 02:05:57 +00:00
matz
ac99a70c89 * ext/digest/lib/digest.rb (Digest::self.const_missing): avoid
infinite recursive const_missing call.  [ruby-talk:262193]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-28 00:40:58 +00:00
nobu
60e3b1b441 * file.c (rb_file_s_rename): deleted code to get rid of a bug of
old Cygwin.

* file.c (rb_file_truncate): added prototype of GetLastError()
  on cygwin.  [ruby-dev:31239]

* intern.h (is_ruby_native_thread): prototype.

* missing/strftime.c (strftime): fix printf format and actual
  arguments.

* ext/Win32API/Win32API.c (Win32API_initialize): ditto.

* ext/tk/tcltklib.c (ip_finalize): ditto.

* ext/dl/ptr.c (rb_dlptr_inspect): ditto.  [ruby-dev:31268]

* ext/dl/sym.c (rb_dlsym_inspect): ditto.

* ext/socket/getnameinfo.c: include stdio.h always.

* ext/win32ole/win32ole.c (ole_hresult2msg, folevariable_name,
  folevariable_ole_type, folevariable_ole_type_detail,
  folevariable_value, folemethod_visible): missing return value.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-22 05:33:47 +00:00
nobu
a86b7ee462 * ext/openssl/ossl_config.c (ossl_config_set_section): do not
initialize aggregations with dynamic values.  [ruby-talk:259306]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-20 06:22:54 +00:00
nobu
f298a1a670 * ext/digest/digest.c (rb_digest_instance_update,
rb_digest_instance_finish, rb_digest_instance_reset,
  rb_digest_instance_block_length): %s in rb_raise() expects char*.
  [ruby-dev:31222]

* ext/openssl/ossl.h: include ossl_pkcs5.h.  [ruby-dev:31231]

* ext/openssl/ossl_pkcs5.h: new file for PKCS5.  [ruby-dev:31231]

* ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise()
  instead of rb_raise().  [ruby-dev:31222]

* ext/sdbm/_sdbm.c: DOSISH platforms need io.h.  [ruby-dev:31232]

* ext/syck/syck.h: include stdlib.h for malloc() and free().
  [ruby-dev:31232]

* ext/syck/syck.h (syck_parser_set_input_type): prototype added.
  [ruby-dev:31231]

* win32/win32.c: include mbstring.h for _mbspbrk().  [ruby-dev:31232]

* win32.h (rb_w32_getcwd): prototype added.  [ruby-dev:31232]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-15 13:24:51 +00:00
technorama
7137a314b3 * ext/openssl/{extconf.rb,ossl_ssl_session.c}:
Fix ruby-Bugs-11513.

* ext/openssl/ossl_pkey_ec.c
  New methods EC::Point.[eql,make_affine!,invert!,on_curve?,infinity?]
  By default output the same key form as the openssl command.

* ext/openssl/ossl_rand.c
  New method Random.status?

* test/openssl/test_ec.rb
  New tests.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-18 09:03:15 +00:00
nobu
5cf53bcb01 * common.mk (realclean): separate local and ext.
* ext/extmk.rb: not remove unrelated directories.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 13:31:54 +00:00
usa
5dae2fe2ea * ext/dl/lib/dl/win32.rb: seems that dl doesn't accept void argument.
fixed [ruby-bugs:PR#5489].



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-15 08:03:09 +00:00
technorama
18342ff8e0 import OpenSSL from trunk
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-06-08 15:02:04 +00:00
nagai
c80c57d940 * ext/tk/lib/tkextlib/tcllib/tablelist.rb: fix typo.
* ext/tk/lib/tkextlib/tile/dialog.rb: forget to give an argument.
* ext/tk/lib/tkextlib/version.rb: update RELEASE_DATE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-25 16:11:23 +00:00
nobu
7eabee4a40 * ext/purelib.rb: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 21:09:22 +00:00
nobu
ebb163d918 * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default
load path to get rid of load pre-installed extensions/libraries.
  [ruby-core:11017]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-22 20:48:34 +00:00
nobu
39e50d214d * ext/thread/thread.c (wait_list): supress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-14 04:26:57 +00:00
usa
9c749a323e * ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-10 06:20:58 +00:00
akr
6d5469dd5b clear cmsg padding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25 13:35:47 +00:00
akr
32b6bd3232 * ext/socket/socket.c (unix_send_io, unix_recv_io): use CMSG_DATA to
align file descriptor appropriately.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-25 11:00:37 +00:00
nobu
27d87bb4de * ext/extmk.rb ($ruby): add extout directory to include path.
[ruby-core:11003]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-23 13:13:53 +00:00
matz
0ce51bc995 * ext/pty/expect_sample.rb: avoid symbolic link representation for
expect.  a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30714]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 13:57:13 +00:00
nobu
3eb48e993a * ext/stringio/stringio.c (strio_seek): consistent behavior with
IO#seek.  patch by sheepman in [ruby-dev:30710].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-16 07:48:50 +00:00
usa
f7ba3c3de3 * ext/socket/socket.c (s_recv, s_recvfrom): some systems (such as
windows) doesn't set fromlen if the socket is connection-oriented.
	  reported by Bram Whillock in [ruby-core:10512] [ruby-Bugs#9061]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-03 06:48:08 +00:00
knu
1bb22ded25 * ext/thread/thread.c (remove_one): Preserve List invariants;
submitted by: MenTaLguY <mental AT rydia.net>
  in [ruby-core:10598] and [ruby-bugs:PR#9388].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-20 22:26:18 +00:00
ttate
474e217c55 fixed the problem reported in [ruby-dev:30531].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-17 06:01:02 +00:00
knu
94c043e91e * ext/dl/dl.c (rb_ary2cary): Fix a bug in type validation;
submitted by sheepman <sheepman AT sheepman.sakura.ne.jp>
  in [ruby-dev:30554].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 12:52:07 +00:00
knu
f99852f162 * ext/etc/etc.c (etc_getgrgid): Fix a bug in Etc::getgrgid()
always returning the (real) group entry of the running process;
  reported by: UEDA Hiroyuki <ueda AT netforest.ad.jp>
  in [ruby-dev:30586].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 09:35:23 +00:00
knu
5f4b6b984a * ext/thread/thread.c (unlock_mutex_inner): Make sure that the
given mutex is actually owned by the caller; submitted by:
  Sylvain Joyeux <sylvain.joyeux AT m4x.org> in [ruby-core:10598].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 07:36:08 +00:00
knu
15b97d196a * ext/thread/thread.c (wait_condvar, lock_mutex): Fix a problem in
ConditionVariable#wait that occurs when two threads that are
  trying to access the condition variable are also in concurrence
  for the given mutex; submitted by: Sylvain Joyeux
  <sylvain.joyeux AT m4x.org> and MenTaLguY <mental AT rydia.net>
  in [ruby-core:10598].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-16 07:27:09 +00:00
matz
1fbbef5d73 * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now
treated as ("-0.31") not as ("0.31").

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-14 05:35:31 +00:00
knu
7740080cdb * ext/openssl/ossl_asn1.c (Init_ossl_asn1): Let rdoc know about
externally defined modules; submitted by Technorama
  Ltd. <oss-ruby AT technorama.net> in [ruby-bugs:PR#4704].

* ext/openssl/ossl_bn.c (Init_ossl_bn): Ditto.

* ext/openssl/ossl_cipher.c (Init_ossl_cipher): Ditto.

* ext/openssl/ossl_digest.c (Init_ossl_digest): Ditto.

* ext/openssl/ossl_hmac.c (Init_ossl_hmac): Ditto.

* ext/openssl/ossl_pkey.c (Init_ossl_pkey): Ditto.

* ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): Ditto.

* ext/openssl/ossl_pkey_dsa.c (Init_ossl_dsa): Ditto.

* ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): Ditto.

* ext/openssl/ossl_rand.c (Init_ossl_rand): Ditto.

* ext/openssl/ossl_ssl.c (Init_ossl_ssl): Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-12 04:07:08 +00:00
knu
d2b0eeb18e * ext/dl/sym.c (rb_dlsym_inspect): Use "0x%x" rather for pointers.
This might not be very right but it is commonly used in other
  parts of the code; submitted by sheepman <sheepman AT
  sheepman.sakura.ne.jp> in [ruby-dev:30532].

* ext/dl/ptr.c (rb_dlptr_inspect): Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-11 16:09:50 +00:00