aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-06 04:21:57 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-06 04:21:57 +0000
commited02592b06f58657c381fb91c2a2f84511d0d0df (patch)
tree86b6c0147daf4479498024bb0d772a4689fc7938
parentcabb993e217d9e031d86ed2c1229f8248567e7eb (diff)
downloadruby-openssl-history-ed02592b06f58657c381fb91c2a2f84511d0d0df.tar.gz
* ossl_x509store.c:
- ossl_x509store_add_cert(): should duplicate added cert. - ossl_x509store_add_crl(): should duplicate added crl.
-rw-r--r--ChangeLog5
-rw-r--r--ossl_x509store.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 10a6703..a606285 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun, 06 Jul 2003 13:20:04 +0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ossl_x509store.c:
+ - ossl_x509store_add_cert(): should duplicate added cert.
+ - ossl_x509store_add_crl(): should duplicate added crl.
+
Fri, 05 Jul 2003 12:45:24 +0900 -- NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* examples/gen_csr.rb: DN parsing bug fix.
* examples/ca/gen_cert.rb:
diff --git a/ossl_x509store.c b/ossl_x509store.c
index 50b861d..02884a1 100644
--- a/ossl_x509store.c
+++ b/ossl_x509store.c
@@ -217,7 +217,7 @@ ossl_x509store_add_cert(VALUE self, VALUE arg)
X509_STORE *store;
X509 *cert;
- cert = DupX509CertPtr(arg);
+ cert = GetX509CertPtr(arg); /* NO NEED TO DUP */
GetX509Store(self, store);
X509_STORE_add_cert(store, cert);
@@ -230,7 +230,7 @@ ossl_x509store_add_crl(VALUE self, VALUE arg)
X509_STORE *store;
X509_CRL *crl;
- crl = DupX509CRLPtr(arg);
+ crl = GetX509CRLPtr(arg); /* NO NEED TO DUP */
GetX509Store(self, store);
X509_STORE_add_crl(store, crl);