1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

7 commits

Author SHA1 Message Date
knu
ec5ff1197a * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-05 19:31:50 +00:00
gotoyuzo
128eaaad11 * ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.
* ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method
  OpenSSL::Cipher.ciphers. it returns all the cipher names.

* ext/openssl/lib/openssl/cipher.rb:
  - add constants AES128, AES192, AES256. [ruby-dev:28610]
  - reimplement without eval()

* ext/openssl/lib/openssl/digest.rb: reimplement without eval().

* test/openssl/test_cipher.rb, test_digest: fix about reimplemented
  features.

* sample/openssl/cipher.rb: rewrite all.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-20 11:18:16 +00:00
nahi
3f9070033c * sample/openssl/gen_csr.rb: wrong usage string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-31 00:20:26 +00:00
gotoyuzo
8b75717f4f untypo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 07:13:24 +00:00
gotoyuzo
d097999e44 backport from Ruby-1.9.
* ext/openssl/ossl_x509hame.c (ossl_x509name_initialize): change
  second argument. it expected to be a Hash not an Integer.

* ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): add new
  function for OpenSSL::X509::Name#add_entry.

* ext/openssl/ossl_x509name.c (ossl_x509name_to_a): append ASN.1
  tag number to each element of return value.

* ext/openssl/ossl_x509name.c (Init_ossl_x509name): add constants
  OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE and OBJECT_TYPE_TEMPLATE.

* ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name#initialize):
  second argument takes OBJECT_TYPE_TEMPLATE by default.

* sample/openssl/gen_csr.rb: use OpenSSL::X509::Name.parse.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 06:49:11 +00:00
nahi
cc2343e7b7 * sample/openssl/gen_csr.rb: there (at least) is a CA which does not accept DN
in UTF8STRING format.  it's a sample.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-05 14:55:52 +00:00
nahi
5f84c80fc5 * sample/openssl: added. Sample of standard distribution library should be
locate in sample/{module_name}/*.

* ext/openssl/sample/*: removed.  move to sample/openssl/*.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-04 10:31:29 +00:00