diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-23 02:25:08 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-05-22 10:03:58 +0900 |
commit | c24bae3993690e0061f4e2f269a22d945021d66d (patch) | |
tree | 607ae7eaca802610f35bab224e0a470062f61df9 /ext/openssl/ossl_x509cert.c | |
parent | 8d4d444917aff23c212e3165132d130cd280b72c (diff) | |
download | ruby-openssl-c24bae3993690e0061f4e2f269a22d945021d66d.tar.gz |
Remove unused functions and macros
Diffstat (limited to 'ext/openssl/ossl_x509cert.c')
-rw-r--r-- | ext/openssl/ossl_x509cert.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c index 9ecee9c3..53c646cf 100644 --- a/ext/openssl/ossl_x509cert.c +++ b/ext/openssl/ossl_x509cert.c @@ -67,40 +67,6 @@ ossl_x509_new(X509 *x509) return obj; } -VALUE -ossl_x509_new_from_file(VALUE filename) -{ - X509 *x509; - FILE *fp; - VALUE obj; - - rb_check_safe_obj(filename); - obj = NewX509(cX509Cert); - if (!(fp = fopen(StringValueCStr(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... -#if !defined(OPENSSL_NO_FP_API) - if (!x509) { - (void)ERR_get_error(); - rewind(fp); - - x509 = d2i_X509_fp(fp, NULL); - } -#endif - */ - fclose(fp); - if (!x509) { - ossl_raise(eX509CertError, NULL); - } - SetX509(obj, x509); - - return obj; -} - X509 * GetX509CertPtr(VALUE obj) { |