add LUAMOD_API

This commit is contained in:
Cloud Wu
2017-03-16 15:24:11 +08:00
parent b00b006c4a
commit 6170346da2
18 changed files with 53 additions and 23 deletions

View File

@@ -82,6 +82,8 @@ A million repetitions of "a"
34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
*/
#define LUA_LIB
#include <stdio.h>
#include <string.h>
#include <stdint.h>
@@ -269,7 +271,7 @@ xor_key(uint8_t key[BLOCKSIZE], uint32_t xor) {
}
}
int
LUAMOD_API int
lhmac_sha1(lua_State *L) {
size_t key_sz = 0;
const uint8_t * key = (const uint8_t *)luaL_checklstring(L, 1, &key_sz);