pike.git
/
src
/
post_modules
/
Nettle
/
hash.H
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hash.H:91:
*! @param b *! Block size. Must @expr{0@} (zero) or equal to the @[block_size()]. DOCEND() PIKEFUN void create(string(8bit) passwd, void|int b) flags ID_PROTECTED; { const struct nettle_hash *meta = THIS->meta = ((struct Nettle_Hash_struct *) parent_storage(2, Nettle_Hash_program))->meta; NO_WIDE_STRING(passwd);
-
if (b && b->u.integer && (b->u.integer != meta->block_size)) {
+
if (b && b->u.integer && (b->u.integer !=
(INT_TYPE)
meta->block_size)) {
Pike_error("Block sizes other than %d are not supported.\n", meta->block_size); } HMAC_SET_KEY(&THIS->ctx, meta, passwd->len, (const uint8_t *)passwd->str); if (cmod_CONCAT_EVAL(f_Hash__HMAC_, NETTLE_NAME, _create_fun_num) != -1) { /* Pass along the password to the inherited pike-level code. */ apply_current(cmod_CONCAT_EVAL(f_Hash__HMAC_, NETTLE_NAME, _create_fun_num), args); } }