mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_pkey.c (ossl_pkey_new_from_file): set close-on-exec
flag. * ext/openssl/ossl_x509cert.c (rb_fd_fix_cloexec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
158a828c97
commit
b848d4f9c8
3 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,7 @@ ossl_x509_new_from_file(VALUE filename)
|
|||
if (!(fp = fopen(RSTRING_PTR(filename), "r"))) {
|
||||
ossl_raise(eX509CertError, "%s", strerror(errno));
|
||||
}
|
||||
rb_fd_fix_cloexec(fileno(fp));
|
||||
x509 = PEM_read_X509(fp, NULL, NULL, NULL);
|
||||
/*
|
||||
* prepare for DER...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue