lm_ssl.c
changeset 12 63f06a23c235
parent 11 a8c6460d612b
child 16 09b375e9ce32
equal deleted inserted replaced
11:a8c6460d612b 12:63f06a23c235
   171 
   171 
   172 const static luaL_Reg reg_f_lm_ssl[] = {
   172 const static luaL_Reg reg_f_lm_ssl[] = {
   173 	{ "new",       new_lm_ssl       },
   173 	{ "new",       new_lm_ssl       },
   174 	{ "bless",     bless_lua_lm_ssl },
   174 	{ "bless",     bless_lua_lm_ssl },
   175 	{ "supported", supported_lm_ssl },
   175 	{ "supported", supported_lm_ssl },
   176 	{ NULL,        NULL              },
   176 	{ NULL,        NULL             },
   177 };
   177 };
   178 
   178 
   179 const static luaL_Reg reg_m_lm_ssl[] = {
   179 const static luaL_Reg reg_m_lm_ssl[] = {
   180 	{ "fingerprint", fingerprint_lm_ssl },
   180 	{ "fingerprint", fingerprint_lm_ssl },
   181 	{ "pointer",     pointer_lm_ssl     },
   181 	{ "pointer",     pointer_lm_ssl     },
   182 	{ "__gc",        gc_lm_ssl          },
   182 	{ "__gc",        gc_lm_ssl          },
   183 	{ NULL,          NULL                },
   183 	{ NULL,          NULL               },
   184 };
   184 };
   185 
   185 
   186 int luaopen_lm_ssl (lua_State *L)
   186 int luaopen_lm_ssl (lua_State *L)
   187 {
   187 {
   188 	luaL_newmetatable (L, "loudmouth.ssl");
   188 	luaL_newmetatable (L, "loudmouth.ssl");