aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_hmac.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-02-23 07:27:42 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-02-23 07:27:42 +0000
commit59dd8c5696d83aff78c506d2a161ea4ffb404088 (patch)
tree4122e0c64fd7117dfdc776f013fb1e487d227b4f /ossl_hmac.c
parent447afde226aac7461d8a549ea8aae5763b0e3124 (diff)
downloadruby-openssl-history-59dd8c5696d83aff78c506d2a161ea4ffb404088.tar.gz
* More benevolent checks (Check_SafeStr(x) -> Check_Type(x, T_STRING)
(where we don't care)
Diffstat (limited to 'ossl_hmac.c')
-rw-r--r--ossl_hmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ossl_hmac.c b/ossl_hmac.c
index 43d9a45..8bb5aec 100644
--- a/ossl_hmac.c
+++ b/ossl_hmac.c
@@ -70,7 +70,7 @@ ossl_hmac_initialize(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "20", &key, &digest);
- Check_SafeStr(key);
+ Check_Type(key, T_STRING);
md = ossl_digest_get_EVP_MD(digest);
if (!(hmacp->hmac = OPENSSL_malloc(sizeof(HMAC_CTX)))) {
@@ -88,7 +88,7 @@ ossl_hmac_update(VALUE self, VALUE data)
GetHMAC(self, hmacp);
- Check_SafeStr(data);
+ Check_Type(data, T_STRING);
HMAC_Update(hmacp->hmac, RSTRING(data)->ptr, RSTRING(data)->len);