ext/certstore/loader.c in certstore_c-0.1.6 vs ext/certstore/loader.c in certstore_c-0.1.7
- old
+ new
@@ -9,10 +9,13 @@
/* See the License for the specific language governing permissions and */
/* limitations under the License. */
#include <certstore.h>
+VALUE rb_cCertLoader;
+VALUE rb_eCertLoaderError;
+
struct CertstoreLoader
{
HCERTSTORE hStore;
PCCERT_CONTEXT pContext;
};
@@ -500,12 +503,12 @@
rb_raise(rb_eCertLoaderError, errBuf);
}
void
-Init_certstore_loader(VALUE rb_mCertstore)
+Init_certstore_loader(VALUE certstore)
{
- rb_cCertLoader = rb_define_class_under(rb_mCertstore, "Loader", rb_cObject);
+ rb_cCertLoader = rb_define_class_under(certstore, "Loader", rb_cObject);
rb_eCertLoaderError =
rb_define_class_under(rb_cCertLoader, "LoaderError", rb_eStandardError);
rb_define_alloc_func(rb_cCertLoader, rb_win_certstore_loader_alloc);
rb_define_method(rb_cCertLoader, "initialize", rb_win_certstore_loader_initialize, 2);