diff options
-rw-r--r-- | ext/openssl/ossl_ssl.c | 2 | ||||
-rw-r--r-- | ext/openssl/ossl_x509cert.c | 2 | ||||
-rw-r--r-- | lib/openssl/x509.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 380b18e7..8f365278 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -1410,7 +1410,7 @@ static VALUE peer_ip_address(VALUE self) { VALUE remote_address = rb_funcall(rb_attr_get(self, id_i_io), rb_intern("remote_address"), 0); - + return rb_funcall(remote_address, rb_intern("inspect_sockaddr"), 0); } diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c index 4884fc89..996f1841 100644 --- a/ext/openssl/ossl_x509cert.c +++ b/ext/openssl/ossl_x509cert.c @@ -741,7 +741,7 @@ load_chained_certificates_append(VALUE certificates, X509 *certificate) { arguments.certificate = certificate; rb_ensure(load_chained_certificates_append_push, (VALUE)&arguments, load_chained_certificate_append_ensure, (VALUE)&arguments); - + return arguments.certificates; } diff --git a/lib/openssl/x509.rb b/lib/openssl/x509.rb index 367a899e..448941f7 100644 --- a/lib/openssl/x509.rb +++ b/lib/openssl/x509.rb @@ -338,7 +338,7 @@ module OpenSSL q.text 'not_after='; q.pp self.not_after } end - + def self.load_file(path) load(File.binread(path)) end |