diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-07 12:37:12 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-07 12:37:12 +0000 |
commit | d1cae3844bbbdbcd14a88ac38ec73f5d0ab34130 (patch) | |
tree | 3d55f4fdfa71a63053a88bae1efd1859418dea3e /ossl_x509store.c | |
parent | b3538dbaeb0eefca399b2668a8bfb035080875c6 (diff) | |
download | ruby-openssl-history-d1cae3844bbbdbcd14a88ac38ec73f5d0ab34130.tar.gz |
X509Attr, X509Cert, X509CRL, X509Ext, X509Name, X509Req, X509Revoked, X509Store port to 1.8 and new class creation fixups
Diffstat (limited to 'ossl_x509store.c')
-rw-r--r-- | ossl_x509store.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ossl_x509store.c b/ossl_x509store.c index 00ee0c8..e0714b7 100644 --- a/ossl_x509store.c +++ b/ossl_x509store.c @@ -200,7 +200,7 @@ ossl_x509store_add_trusted(VALUE self, VALUE cert) GetX509Store(self, storep); - OSSL_Check_Type(cert, cX509Certificate); + OSSL_Check_Type(cert, cX509Cert); x509 = ossl_x509_get_X509(cert); if (!X509_STORE_add_cert(storep->store->ctx, x509)) { @@ -323,7 +323,7 @@ ossl_x509store_verify(VALUE self, VALUE cert) GetX509Store(self, storep); - OSSL_Check_Type(cert, cX509Certificate); + OSSL_Check_Type(cert, cX509Cert); x509 = ossl_x509_get_X509(cert); X509_STORE_CTX_set_cert(storep->store, x509); @@ -459,16 +459,16 @@ ossl_x509store_cleanup(VALUE self) * INIT */ void -Init_ossl_x509store(VALUE module) +Init_ossl_x509store() { /* * INIT verify_cb DB */ db_root = NULL; - eX509StoreError = rb_define_class_under(module, "StoreError", eOSSLError); + eX509StoreError = rb_define_class_under(mX509, "StoreError", eOSSLError); - cX509Store = rb_define_class_under(module, "Store", rb_cObject); + cX509Store = rb_define_class_under(mX509, "Store", rb_cObject); rb_define_singleton_method(cX509Store, "new", ossl_x509store_s_new, -1); rb_define_method(cX509Store, "initialize", ossl_x509store_initialize, -1); |