aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_x509ext.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-03 21:25:27 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-08-16 14:22:08 +0900
commitb47d95f01aa2e941dd4454674ab28f387e9ceab9 (patch)
treee855aafaa0470262af08b533ceb726617994cf48 /ext/openssl/ossl_x509ext.c
parent1e30cd395b14ef46e04bdd9ab72f10067890b265 (diff)
downloadruby-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.c13
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
*/