diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-11-21 21:31:56 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-11-21 21:31:56 +0000 |
commit | 1c8834d13a4505af0c91530e1f505df325d45fe9 (patch) | |
tree | 5d385cf1931f04ee80bed016f1dbdcb209af5e02 /ossl_hmac.c | |
parent | 2577414c0428ea652b6ad18f66dd4e50bb89de3a (diff) | |
download | ruby-openssl-history-1c8834d13a4505af0c91530e1f505df325d45fe9.tar.gz |
- BN added (only proof of concept)
- indent changed
- rand.h to ossl.h added
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 bce9068..b56beb8 100644 --- a/ossl_hmac.c +++ b/ossl_hmac.c @@ -164,11 +164,11 @@ ossl_hmac_hexhmac(VALUE self) * INIT */ void -Init_hmac(VALUE mOSSL) +Init_hmac(VALUE module) { - eHMACError = rb_define_class_under(mOSSL, "HMACError", rb_eStandardError); + eHMACError = rb_define_class_under(module, "HMACError", rb_eStandardError); - cHMAC = rb_define_class_under(mOSSL, "HMAC", rb_cObject); + cHMAC = rb_define_class_under(module, "HMAC", rb_cObject); rb_define_singleton_method(cHMAC, "new", ossl_hmac_s_new, -1); rb_define_method(cHMAC, "initialize", ossl_hmac_initialize, -1); rb_define_method(cHMAC, "update", ossl_hmac_update, 1); @@ -182,7 +182,7 @@ Init_hmac(VALUE mOSSL) #else void -Init_hmac(VALUE dummy) +Init_hmac(VALUE module) { rb_warning("HMAC will NOT be avaible: OpenSSL is compiled without HMAC"); } |