lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs

commit 3f2daeef0234d8788cbe0dfab60f2d8a6e6dbca7
parent a913125fa3bd9da56659b6deeef0102fce2cfa29
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri, 16 Dec 2011 15:20:50 +0000

Change logRounds to C naming convention

Diffstat:
src/luabcrypt.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/luabcrypt.c b/src/luabcrypt.c @@ -27,10 +27,10 @@ static int luabcrypt_digest( lua_State *L ) // bcrypt.gensalt( logRounds ) static int luabcrypt_gensalt( lua_State *L ) { - u_int8_t logRounds = luaL_checkinteger( L, 1 ); + u_int8_t log_rounds = luaL_checkinteger( L, 1 ); char *salt = malloc( 7 + ( BCRYPT_MAXSALT * 4 + 2 ) / 3 + 1 ); - bcrypt_gensalt( logRounds, salt ); + bcrypt_gensalt( log_rounds, salt ); lua_pushstring( L, salt );