diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-03 21:25:27 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-16 14:22:08 +0900 |
commit | b47d95f01aa2e941dd4454674ab28f387e9ceab9 (patch) | |
tree | e855aafaa0470262af08b533ceb726617994cf48 /ext/openssl/ossl_x509ext.c | |
parent | 1e30cd395b14ef46e04bdd9ab72f10067890b265 (diff) | |
download | ruby-openssl-b47d95f01aa2e941dd4454674ab28f387e9ceab9.tar.gz |
x509ext: remove unnecessary DupX509ExtPtr()
All usages can be replaced with GetX509ExtPtr().
Diffstat (limited to 'ext/openssl/ossl_x509ext.c')
-rw-r--r-- | ext/openssl/ossl_x509ext.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/openssl/ossl_x509ext.c b/ext/openssl/ossl_x509ext.c index 60a63b2e..46df9042 100644 --- a/ext/openssl/ossl_x509ext.c +++ b/ext/openssl/ossl_x509ext.c @@ -95,19 +95,6 @@ GetX509ExtPtr(VALUE obj) return ext; } -X509_EXTENSION * -DupX509ExtPtr(VALUE obj) -{ - X509_EXTENSION *ext, *new; - - SafeGetX509Ext(obj, ext); - if (!(new = X509_EXTENSION_dup(ext))) { - ossl_raise(eX509ExtError, NULL); - } - - return new; -} - /* * Private */ |