aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_x509req.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-23 02:25:08 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-05-22 10:03:58 +0900
commitc24bae3993690e0061f4e2f269a22d945021d66d (patch)
tree607ae7eaca802610f35bab224e0a470062f61df9 /ext/openssl/ossl_x509req.c
parent8d4d444917aff23c212e3165132d130cd280b72c (diff)
downloadruby-openssl-c24bae3993690e0061f4e2f269a22d945021d66d.tar.gz
Remove unused functions and macros
Diffstat (limited to 'ext/openssl/ossl_x509req.c')
-rw-r--r--ext/openssl/ossl_x509req.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/openssl/ossl_x509req.c b/ext/openssl/ossl_x509req.c
index 67b00234..8214fdc5 100644
--- a/ext/openssl/ossl_x509req.c
+++ b/ext/openssl/ossl_x509req.c
@@ -47,26 +47,6 @@ static const rb_data_type_t ossl_x509req_type = {
/*
* Public functions
*/
-VALUE
-ossl_x509req_new(X509_REQ *req)
-{
- X509_REQ *new;
- VALUE obj;
-
- obj = NewX509Req(cX509Req);
- if (!req) {
- new = X509_REQ_new();
- } else {
- new = X509_REQ_dup(req);
- }
- if (!new) {
- ossl_raise(eX509ReqError, NULL);
- }
- SetX509Req(obj, new);
-
- return obj;
-}
-
X509_REQ *
GetX509ReqPtr(VALUE obj)
{
@@ -77,19 +57,6 @@ GetX509ReqPtr(VALUE obj)
return req;
}
-X509_REQ *
-DupX509ReqPtr(VALUE obj)
-{
- X509_REQ *req, *new;
-
- GetX509Req(obj, req);
- if (!(new = X509_REQ_dup(req))) {
- ossl_raise(eX509ReqError, NULL);
- }
-
- return new;
-}
-
/*
* Private functions
*/