3131#include "lcrypto.h"
3232#include "lcrypto_compat_110.h"
3333
34- LUACRYPTO_API int luaopen_crypto (lua_State * L );
35-
3634static int crypto_error (lua_State * L )
3735{
3836 char buf [120 ];
@@ -1779,7 +1777,7 @@ static int x509_ca_add_pem(lua_State* L)
17791777/*
17801778** Create a metatable and keep stack balance when leave
17811779*/
1782- LUACRYPTO_API void luacrypto_createmeta (lua_State * L , const char * name , const luaL_Reg * methods )
1780+ static void luacrypto_createmeta (lua_State * L , const char * name , const luaL_Reg * methods )
17831781{
17841782 if (!luaL_newmetatable (L , name ))
17851783 return ;
@@ -1919,19 +1917,10 @@ static void create_metatables(lua_State* L)
19191917 NONCALLTABLE (pkey );
19201918}
19211919
1922- /*
1923- ** Define the metatable for the object on top of the stack
1924- */
1925- LUACRYPTO_API void luacrypto_setmeta (lua_State * L , const char * name )
1926- {
1927- luaL_getmetatable (L , name );
1928- lua_setmetatable (L , -2 );
1929- }
1930-
19311920/*
19321921** Assumes the table is on top of the stack.
19331922*/
1934- LUACRYPTO_API void luacrypto_set_info (lua_State * L )
1923+ static void luacrypto_set_info (lua_State * L )
19351924{
19361925 lua_pushliteral (L , "_COPYRIGHT" );
19371926 lua_pushliteral (L , "Copyright (C) 2005-2006 Keith Howe" );
@@ -1948,7 +1937,7 @@ LUACRYPTO_API void luacrypto_set_info(lua_State* L)
19481937** Creates the metatables for the objects and registers the
19491938** driver open method.
19501939*/
1951- LUACRYPTO_API int luaopen_crypto (lua_State * L )
1940+ int luaopen_crypto (lua_State * L )
19521941{
19531942 struct luaL_Reg core_functions [] = {
19541943 { "list" , luacrypto_list },
0 commit comments