pike.git / src / post_modules / Nettle / nettle.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:110:    NO_WIDE_STRING(salt);    init_string_builder_alloc(&ret, BLOWFISH_BCRYPT_HASH_SIZE, 0);    retval = nettle_blowfish_bcrypt_hash(STR0(ret.s),    password->len, STR0(password), scheme->len, STR0(scheme),    log2rounds ? log2rounds->u.integer : -1,    salt && salt->len >= BLOWFISH_BCRYPT_BINSALT_SIZE ? STR0(salt) : NULL);    if (!retval) {    free_string_builder(&ret);    Pike_error("Invalid password hash scheme for bcrypt.\n");    } -  ret.s->len = strlen(STR0(ret.s)); +  ret.s->len = strlen((char *)STR0(ret.s));    RETURN finish_string_builder(&ret);   }      /*! @decl int bcrypt_verify(string(8bit) password, string(7bit) hashedpassword)    *!    *! Low level implementation of the bcrypt password-verifying algorithm.    *!    *! @param password    *! The cleartext password. Only accepts 8-bit strings.    *!