diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-04 06:44:42 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-04 06:44:42 +0000 |
commit | a5180750f7ab485fba73dd6e9861536adf3b693b (patch) | |
tree | cd2cea7862bed69939cb64d20346a3f975b5a9cc /ossl_hmac.c | |
parent | bc603852659675cd0c7420dd4d126780f7ba6ee2 (diff) | |
download | ruby-openssl-history-a5180750f7ab485fba73dd6e9861536adf3b693b.tar.gz |
Initial revision
Diffstat (limited to 'ossl_hmac.c')
-rw-r--r-- | ossl_hmac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ossl_hmac.c b/ossl_hmac.c index f09775f..3bbd0d9 100644 --- a/ossl_hmac.c +++ b/ossl_hmac.c @@ -8,7 +8,7 @@ * This program is licenced under the same licence as Ruby. * (See the file 'LICENCE'.) */ -#if !defined(NO_HMAC) && !defined(OPENSSL_NO_HMAC) +#if !defined(OPENSSL_NO_HMAC) #include "ossl.h" @@ -142,9 +142,9 @@ ossl_hmac_hexhmac(VALUE self) * INIT */ void -Init_hmac(VALUE module) +Init_ossl_hmac(VALUE module) { - eHMACError = rb_define_class_under(module, "HMACError", rb_eStandardError); + eHMACError = rb_define_class_under(module, "HMACError", eOSSLError); cHMAC = rb_define_class_under(module, "HMAC", rb_cObject); rb_define_singleton_method(cHMAC, "new", ossl_hmac_s_new, -1); @@ -160,7 +160,7 @@ Init_hmac(VALUE module) #else /* NO_HMAC */ void -Init_hmac(VALUE module) +Init_ossl_hmac(VALUE module) { rb_warning("HMAC will NOT be avaible: OpenSSL is compiled without HMAC."); } |