Commit graph

7022 commits

Author SHA1 Message Date
dave
c874753bb2 Commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 15:54:25 +00:00
dave
e6de7978a1 Support call-seq: for Ruby methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 15:52:35 +00:00
eban
4437be2c64 2004-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 14:57:03 +00:00
dave
70462a011e Allow multiple words in braces before a link
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 12:20:51 +00:00
nahi
99f94a1215 2004-07-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-10 00:36:22 +00:00
nahi
0b0d082d1c * test/soap/marshal/test_struct.rb: use qualified build-tin class name
(::Struct) to avoid name crash.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-10 00:35:02 +00:00
nagai
24d2225afd * ext/tk/lib/tk.rb: better operation for SIGINT when processing callbacks.
* ext/tk/lib/tk/msgcat.rb: ditto.
* ext/tk/lib/tk/variable.rb: ditto.
* ext/tk/lib/tk/timer.rb: ditto.
* ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd()
  to define validatecommand methods easier


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-09 19:29:29 +00:00
ocean
703f913426 * array.c, enum.c, pack.c: rdoc patch from Johan Holmberg
<holmberg@iar.se> [ruby-core:3132] [ruby-core:3136]

* numeric.c: rdoc patch.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-09 13:38:34 +00:00
akr
c4d8f782a4 lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to notice https is not supported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-09 10:33:25 +00:00
nobu
7808175f0f * eval.c (rb_thread_raise): accept third argument as well as
Kernel#raise, and evaluate the arguments to create an exception in
  the caller's context.  [ruby-talk:105507]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-09 05:29:45 +00:00
eban
32c6d794f4 2004-07-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-09 01:51:40 +00:00
nagai
d6cdf320b7 * add entries
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-08 16:59:56 +00:00
nagai
9945dd1adf * ext/tk/lib : bug fix
* ext/tk/lib/tkextlib/itcl : add [incr Tcl] support
* ext/tk/lib/tkextlib/itk  : add [incr Tk] support
* ext/tk/lib/tkextlib/iwidgets : midway point of [incr Widgets] support
* ext/tk/sample/tkextlib/iwidgets : very simple examples of [incr Widgets]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-08 16:50:07 +00:00
kou
1909f5f1b1 * lib/rss/{rss,parser,0.9,1.0,2.0}.rb: supported RSS 0.9x/2.0
validation and validation which disregard order of elements.
  * test/rss/test_parser.rb: added tests for RSS 0.9x/2.0
    validation.
  * test/rss/{test_trackback,rss-testcase}.rb: fixed no good method
    name.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-08 13:54:07 +00:00
eban
037d21402b 2004-07-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 17:12:27 +00:00
akira
e0b7ca6b29 * lib/tempfile.rb (Tempfile::initialize): got out code of
generating tmpname.  [ruby-dev:23832][ruby-dev:23837]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 15:18:00 +00:00
nobu
e03ed08bb1 * ext/syck/depend: added
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 08:06:38 +00:00
usa
b97aa9b90e * string.c (rb_str_match): raise TypeError when both arguments are
strings. [ruby-dev:22869] (backported from HEAD)

* string.c (rb_str_match2): removed.

* Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,
  wince/Makefile.sub (string.c): now not depend on version.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 06:54:40 +00:00
dave
03e766f2c3 Update comment to show call-seq example
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 02:15:17 +00:00
eban
dcae53e76c * MANIFEST: add these files:
lib/rexml/validation/relaxng.rb
  lib/rexml/validation/validation.rb
  lib/rexml/validation/validationexception.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 01:42:06 +00:00
ser
46d92962f9 Forgot to add the validation files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 01:19:09 +00:00
eban
dfe27e4386 2004-07-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-06 15:52:37 +00:00
eban
8e4ca2baf7 * ext/tk/lib/tkextlib/tktrans.rb,
ext/tk/lib/tkextlib/treectrl.rb: fix syntax errors.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-06 15:52:18 +00:00
eban
e78efc04e6 2004-07-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-06 10:34:45 +00:00
nagai
eb6571a860 * ext/tk/lib : improve framework of developping Tcl/Tk extension wrappers
* BWidget extension support on Ruby/Tk


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-06 09:42:12 +00:00
kou
d9034d23ce * lib/rss/{trackback,syndication,dublincore,content}.rb: worked
with ruby 1.6 again.

  * test/rss/rss-assertions.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-05 15:15:04 +00:00
akr
74f6b8e7c9 * lib/uri/common.rb (Kernel#URI): new global method for parsing URIs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-05 14:06:10 +00:00
nobu
03514c2761 2004-07-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-05 00:22:55 +00:00
ocean
46f37fe652 Add ML number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-05 00:21:38 +00:00
nobu
1ae90f48b7 * eval.c (rb_thread_yield, rb_f_catch): 4th argument to rb_yield_0()
is a set of bit flags.  [ruby-dev:23859]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-05 00:03:50 +00:00
ocean
0dcd0f094a * lib/drb/drb.rb(DRbConn self.open): If socket pool is full, close
the socket whose last-access-time is oldest. (and add new one)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-04 16:29:03 +00:00
ser
a8379e7f18 * Added the treeparser, and added the file to the MANIFEST.
r1002 | ser | 2004-06-07 07:45:53 -0400 (Mon, 07 Jun 2004) | 2 lines
* Workin' in the coal mine, goin' down, down, down...
r1003 | ser | 2004-06-08 22:24:08 -0400 (Tue, 08 Jun 2004) | 7 lines
* Entirely rewrote the validation code; the finite state machine, while cool,
  didn't survive the encounter with Interleave.  It was getting sort of hacky,
  too.  The new mechanism is less elegant, but is basically still a FSM, and is
  more flexible without having to add hacks to extend it.  Large chunks of the
  FSM may be reusable in other validation mechanisms.
* Added interleave support
r1004 | ser | 2004-06-09 07:24:17 -0400 (Wed, 09 Jun 2004) | 2 lines
* Added suppert for mixed
r1005 | ser | 2004-06-09 08:01:33 -0400 (Wed, 09 Jun 2004) | 3 lines
* Added Kou's patch to normalize attribute values passed through the SAX2 and
  Stream parsers.
r1006 | ser | 2004-06-09 08:12:35 -0400 (Wed, 09 Jun 2004) | 2 lines
* Applied Kou's preceding-sibling patch, which fixes the order of the axe results
r1009 | ser | 2004-06-20 11:02:55 -0400 (Sun, 20 Jun 2004) | 8 lines
* Redesigned and rewrote the RelaxNG code.  It isn't elegant, but it works.
  Particular problems encountered were interleave and ref.  Interleave means I
  can't use a clean FSM design, and ref means the dirty FSM design has to be modified
  during validation.  There's a lot of code that could be cleaned up in here.
  However, I'm pretty sure that this design is reasonably fast and space efficient.
  I'm not entirely convinced that it is correct; more tests are required.
* This version adds support for defines and refs.
r1011 | ser | 2004-06-20 11:20:07 -0400 (Sun, 20 Jun 2004) | 3 lines
* Removed debugging output from unit test
* Moved ">" in Element.inspect
r1014 | ser | 2004-06-20 11:40:30 -0400 (Sun, 20 Jun 2004) | 2 lines
* Minor big in missing includes for validation rules
r1023 | ser | 2004-07-03 08:57:34 -0400 (Sat, 03 Jul 2004) | 2 lines
* Fixed bug #34, typo in xpath_parser.
r1024 | ser | 2004-07-03 10:22:08 -0400 (Sat, 03 Jul 2004) | 9 lines
* Previous fix, (include? -> includes?) was incorrect.
* Added another test for encoding
* Started AnyName support in RelaxNG
* Added Element#Attributes#to_a, so that it does something intelligent.
  This was needed by XPath, for '@*'
* Fixed XPath so that @* works.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-04 15:39:05 +00:00
(no author)
dddfbb3897 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-04 15:39:05 +00:00
kou
b4ec04f6ba * lib/rss/rss.rb: added copyright header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-04 03:32:42 +00:00
eban
be60e6baec * MANIFEST: add soap files again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 16:03:16 +00:00
nahi
87d44a0180 * forgot to add files again (and again).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 16:00:50 +00:00
nahi
dc5dae552a * forgot to add files again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 15:52:13 +00:00
eban
0c4bb03b37 * MANIFEST: added soap files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 15:43:14 +00:00
nahi
3a0a2a29e6 * forgot to add files in the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 15:38:36 +00:00
(no author)
5548c7bff2 This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 15:38:36 +00:00
nahi
ab31bf0d4d * added files
* lib/soap/attachment.rb
          * lib/soap/header
          * lib/soap/mimemessage.rb
          * lib/soap/rpc/httpserver.rb
          * lib/wsdl/soap/cgiStubCreator.rb
          * lib/wsdl/soap/classDefCreator.rb
          * lib/wsdl/soap/classDefCreatorSupport.rb
          * lib/wsdl/soap/clientSkeltonCreator.rb
          * lib/wsdl/soap/driverCreator.rb
          * lib/wsdl/soap/mappingRegistryCreator.rb
          * lib/wsdl/soap/methodDefCreator.rb
          * lib/wsdl/soap/servantSkeltonCreator.rb
          * lib/wsdl/soap/standaloneServerStubCreator.rb
          * lib/wsdl/xmlSchema/enumeration.rb
          * lib/wsdl/xmlSchema/simpleRestriction.rb
          * lib/wsdl/xmlSchema/simpleType.rb
          * lib/xsd/codegen
          * lib/xsd/codegen.rb
          * sample/soap/authheader
          * sample/soap/raa2.4
          * sample/soap/ssl
          * sample/soap/swa
          * sample/soap/whois.rb
          * sample/soap/calc/samplehttpd.conf
          * sample/soap/exchange/samplehttpd.conf
          * sample/soap/sampleStruct/samplehttpd.conf
          * sample/wsdl/raa2.4
          * sample/wsdl/googleSearch/samplehttpd.conf
          * test/openssl/_test_ssl.rb
          * test/soap/header
          * test/soap/ssl
          * test/soap/struct
          * test/soap/swa
          * test/soap/wsdlDriver
          * test/wsdl/multiplefault.wsdl
          * test/wsdl/simpletype
          * test/wsdl/test_multiplefault.rb

        * modified files
          * lib/soap/baseData.rb
          * lib/soap/element.rb
          * lib/soap/generator.rb
          * lib/soap/marshal.rb
          * lib/soap/netHttpClient.rb
          * lib/soap/parser.rb
          * lib/soap/processor.rb
          * lib/soap/property.rb
          * lib/soap/soap.rb
          * lib/soap/streamHandler.rb
          * lib/soap/wsdlDriver.rb
          * lib/soap/encodingstyle/handler.rb
          * lib/soap/encodingstyle/literalHandler.rb
          * lib/soap/encodingstyle/soapHandler.rb
          * lib/soap/mapping/factory.rb
          * lib/soap/mapping/mapping.rb
          * lib/soap/mapping/registry.rb
          * lib/soap/mapping/rubytypeFactory.rb
          * lib/soap/mapping/wsdlRegistry.rb
          * lib/soap/rpc/cgistub.rb
          * lib/soap/rpc/driver.rb
          * lib/soap/rpc/element.rb
          * lib/soap/rpc/proxy.rb
          * lib/soap/rpc/router.rb
          * lib/soap/rpc/soaplet.rb
          * lib/soap/rpc/standaloneServer.rb
          * lib/wsdl/data.rb
          * lib/wsdl/definitions.rb
          * lib/wsdl/operation.rb
          * lib/wsdl/parser.rb
          * lib/wsdl/soap/definitions.rb
          * lib/wsdl/xmlSchema/complexContent.rb
          * lib/wsdl/xmlSchema/complexType.rb
          * lib/wsdl/xmlSchema/data.rb
          * lib/wsdl/xmlSchema/parser.rb
          * lib/wsdl/xmlSchema/schema.rb
          * lib/xsd/datatypes.rb
          * lib/xsd/qname.rb
          * sample/soap/calc/httpd.rb
          * sample/soap/exchange/httpd.rb
          * sample/soap/sampleStruct/httpd.rb
          * sample/soap/sampleStruct/server.rb
          * sample/wsdl/amazon/AmazonSearch.rb
          * sample/wsdl/amazon/AmazonSearchDriver.rb
          * sample/wsdl/googleSearch/httpd.rb
          * test/soap/test_basetype.rb
          * test/soap/test_property.rb
          * test/soap/test_streamhandler.rb
          * test/soap/calc/test_calc.rb
          * test/soap/calc/test_calc2.rb
          * test/soap/calc/test_calc_cgi.rb
          * test/soap/helloworld/test_helloworld.rb
          * test/wsdl/test_emptycomplextype.rb
          * test/wsdl/axisArray/test_axisarray.rb
          * test/wsdl/datetime/test_datetime.rb
          * test/wsdl/raa/test_raa.rb
          * test/xsd/test_xmlschemaparser.rb
          * test/xsd/test_xsd.rb

        * summary
          * add SOAP Header mustUnderstand support.

          * add HTTP client SSL configuration and Cookies support (works
            completely with http-access2).

          * add header handler for handling sending/receiving SOAP Header.

          * map Ruby's anonymous Struct to common SOAP Struct in SOAP Object
            Model.  it caused error.

          * add WSDL simpleType support to restrict lexical value space.

          * add SOAP with Attachment support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 15:29:32 +00:00
eban
df2066555d 2004-07-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 08:50:57 +00:00
eban
3c7b5a0f33 * ext/tk/lib/tkextlib/tkDND.rb: fix syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-03 08:28:05 +00:00
nobu
7800d8ad76 * lib/pstore.rb (transaction): safer backup scheme. [ruby-list:39102]
* lib/pstore.rb (commit_new): use FileUtils.copy_stream for Cygwin.
  [ruby-dev:23157]

* lib/pstore.rb (transaction): allow overriding dump and load.
  [ruby-dev:23567]

* lib/pstore.rb (PStore#transaction): get rid of opening in write mode
  when read only transaction.  [ruby-dev:23842]

* lib/yaml/store.rb: follow lib/pstore.rb's change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 14:15:38 +00:00
nagai
c7bd86ed15 * ext/tk/lib/tcltklib : bug fix
* ext/tk/lib/tk : bug fix and add Tcl/Tk extension support libraries


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 09:38:53 +00:00
(no author)
18aad3084f This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 09:38:53 +00:00
nagai
b7a7c70c32 * ext/tk/lib/tcltklib : bug fix
* ext/tk/lib/tk : bug fix and add Tcl/Tk extension support libraries


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 09:38:48 +00:00
gotoyuzo
ad0add9f08 * ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): last modify is
rolled back for future compatibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 04:51:19 +00:00
gotoyuzo
a9244b8aa7 * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add,
EVP_CIPHER_CTX_set_padding, EVP_CipherFinal_ex, EVP_CipherInit_ex,
  EVP_DigestFinal_ex and EVP_DigestInit_ex.

* ext/openssl/openssl_missing.c (EVP_CIPHER_CTX_copy): new function.

* ext/openssl/openssl_missing.h (EVP_DigestInit_ex, EVP_DigestFinal_ex,
  EVP_CipherInit_ex, EVP_CipherFinal_ex, HMAC_Init_ex): new macro for
  OpenSSL 0.9.6.

* ext/openssl/ossl_cipher.c (ossl_cipher_encrypt, ossl_cipher_decrypt):
  re-implemnt (the arguments for this method is ).

* ext/openssl/ossl_cipher.c (ossl_cipher_pkcs5_keyivgen): new method
  OpenSSL::Cipher::Cipher#pkcs5_keyivgen. it calls EVP_BytesToKey().

* ext/openssl/ossl_cipher.c (ossl_cipher_alloc, ossl_cipher_initialize,
  ossl_cipher_copy, ossl_cipher_reset ossl_cipher_final,
  ossl_cipher_set_key, ossl_cipher_set_iv): replace all EVP_CipherInit
  and EVP_CipherFinal into EVP_CipherInit_ex and EVP_CipherFinal_ex.
  and EVP_CIPHER_CTX_init should only be called once.

* ext/openssl/ossl_cipher.c (ossl_cipher_set_key_length): new method
  OpenSSL::Cipher::Cipher#key_len=.

* ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): the type of
  argument is changed from integer to boolean.

* ext/openssl/ossl_cipher.c (ossl_cipher_init_deprecated): new
  finction; print warning for Cipher#<<.

* ext/openssl/ossl_digest.c: replace all EVP_DigestInit and
  EVP_DigestFinal into EVP_DigestInit_ex and EVP_DigestFinal_ex.
  and EVP_MD_CTX_init should only be called once.

* ext/openssl/ossl_digest.c (digest_final): should call
  EVP_MD_CTX_cleanup to avoid memory leak.

* ext/openssl/ossl_hmac.c (ossl_hmac_initialize): repalce HMAC_init
  into HMAC_init_ex. and HMAC_CTX_init is moved to ossl_hmac_alloc.

* ext/openssl/ossl_hmac.c (hmac_final): should call
  HMAC_CTX_cleanup to avoid memory leak.

* test/openssl/test_cipher.rb, test/openssl/test_digest.rb,
  test/openssl/test_hmac.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 03:01:07 +00:00
(no author)
1d4a4d11cd This commit was manufactured by cvs2svn to create branch 'ruby_1_8'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-01 03:01:07 +00:00