diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-04 23:48:13 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-04 23:48:13 +0000 |
commit | 6e7864ffffb81118a677f544bbf08bc8b32293ec (patch) | |
tree | b78c3376c00915cedf4e3188c9bb6c8a5f16984c /ext/openssl/ossl_ssl.c | |
parent | 607d68f47626a428df440d1b458a6ea5ff14ec4f (diff) | |
download | ruby-6e7864ffffb81118a677f544bbf08bc8b32293ec.tar.gz ruby-6e7864ffffb81118a677f544bbf08bc8b32293ec.tar.xz ruby-6e7864ffffb81118a677f544bbf08bc8b32293ec.zip |
* lib/webrick/https.rb (HTTPRequest#parse): set @client_cert_chain.
* lib/webrick/https.rb (HTTPRequest#meta_vars): create
SSL_CLIENT_CERT_CHAIN_n from @client_cert_chain.
* ext/openssl/ossl_ssl.c (ossl_ssl_get_peer_cert_chain): return nil
if no cert-chain was given.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_ssl.c')
-rw-r--r-- | ext/openssl/ossl_ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index d243b78db..cff32582e 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -618,6 +618,7 @@ ossl_ssl_get_peer_cert_chain(VALUE self) return Qnil; } chain = SSL_get_peer_cert_chain(ssl); + if(!chain) return Qnil; num = sk_num(chain); ary = rb_ary_new2(num); for (i = 0; i < num; i++){ |