From d193b90d54419e253b48aff340887899230d6e63 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Tue, 4 Nov 2003 23:48:13 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_ssl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/openssl') diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index d243b78dbb..cff32582ed 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++){ -- cgit v1.2.3