1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/openssl
gotoyuzo c4b83bb93f * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
OpenSSL::Engine.by_id calls given block before calling ENGINE_init
  (block parameter is the return value of this method itself).
  this functionality is useful to load dynamic shared engines.

        require "openssl"
        pkcs11 = OpenSSL::Engine.by_id("dynamic"){|e|
          e.ctrl_cmd("SO_PATH", "/usr/lib/opensc/engine_pkcs11.so")
          e.ctrl_cmd("LIST_ADD", "1")
          e.ctrl_cmd("LOAD")
        }
        pkcs11.ctrl_cmd("PIN", "secret")
        key = pkcs11.load_private_key

* ext/openssl/ossl_engine.c (ossl_engine_ctrl_cmd): new method
  OpenSSL::Engine#ctrl_cmd. it wraps ENGINE_ctrl_cmd_string.

* ext/openssl/ossl_engine.c (ossl_engine_get_cmds): new method
  OpenSSL::Engine#cmds. it returms engine command definitions.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 08:29:47 +00:00
..
lib * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write): 2005-09-04 22:03:24 +00:00
.cvsignore
extconf.rb * ext/openssl/extconf.rb: check for OPENSSL_cleanse. 2005-04-15 19:16:18 +00:00
openssl_missing.c * ext/openssl/openssl_missin.c: include <openssl/engine.h> before 2005-07-26 03:59:39 +00:00
openssl_missing.h * ext/openssl/extconf.rb: check for OPENSSL_cleanse. 2005-04-15 19:16:18 +00:00
ossl.c * ext/openssl/ossl.c (ossl_raise): should use ERR_peek_last_error 2005-08-07 20:21:40 +00:00
ossl.h * ext/openssl/openssl_missing.c, ext/openssl/ossl.h, 2005-06-19 16:29:17 +00:00
ossl_asn1.c * ext/openssl/ossl_asn1.c (asn1str_to_str): new function. 2005-09-07 07:40:55 +00:00
ossl_asn1.h * ext/openssl/ossl_asn1.c (asn1str_to_str): new function. 2005-09-07 07:40:55 +00:00
ossl_bio.c * ext/openssl/openssl_missing.c, ext/openssl/ossl.h, 2005-06-19 16:29:17 +00:00
ossl_bio.h
ossl_bn.c
ossl_bn.h
ossl_cipher.c * array.c: replace rb_protect_inspect() and rb_inspecting_p() by 2005-03-04 06:47:45 +00:00
ossl_cipher.h
ossl_config.c
ossl_config.h
ossl_digest.c
ossl_digest.h
ossl_engine.c * ext/openssl/ossl_engine.c (ossl_engine_s_by_id): 2005-09-07 08:29:47 +00:00
ossl_engine.h
ossl_hmac.c
ossl_hmac.h
ossl_ns_spki.c * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decode 2005-08-22 20:47:55 +00:00
ossl_ns_spki.h
ossl_ocsp.c * ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call 2005-01-22 20:28:02 +00:00
ossl_ocsp.h
ossl_pkcs7.c * ext/openssl/ossl_asn1.c (asn1str_to_str): new function. 2005-09-07 07:40:55 +00:00
ossl_pkcs7.h * ext/openssl/ossl_asn1.c (asn1str_to_str): new function. 2005-09-07 07:40:55 +00:00
ossl_pkcs12.c
ossl_pkcs12.h * ext/openssl/openssl_missing.c, ext/openssl/ossl.h, 2005-06-19 16:29:17 +00:00
ossl_pkey.c * ext/openssl/ossl_ssl.c: OpenSSL::SSL::SSLContexts suports callbacks: 2005-03-09 10:45:42 +00:00
ossl_pkey.h * ext/openssl/ossl_ssl.c: OpenSSL::SSL::SSLContexts suports callbacks: 2005-03-09 10:45:42 +00:00
ossl_pkey_dh.c * ext/openssl/ossl_pkey_dh.c (ossl_create_dh): fix typo. 2005-03-12 17:15:29 +00:00
ossl_pkey_dsa.c
ossl_pkey_rsa.c
ossl_rand.c
ossl_rand.h
ossl_ssl.c * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decode 2005-08-22 20:47:55 +00:00
ossl_ssl.h
ossl_version.h
ossl_x509.c
ossl_x509.h
ossl_x509attr.c
ossl_x509cert.c
ossl_x509crl.c
ossl_x509ext.c
ossl_x509name.c * ext/openssl/ossl_x509name.c (Init_ossl_x509name): should use 2004-12-27 07:55:56 +00:00
ossl_x509req.c * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decode 2005-08-22 20:47:55 +00:00
ossl_x509revoked.c
ossl_x509store.c * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decode 2005-08-22 20:47:55 +00:00
ruby_missing.h