623 } |
623 } |
624 SSL_load_error_strings(); |
624 SSL_load_error_strings(); |
625 |
625 |
626 /* Initialize internal library */ |
626 /* Initialize internal library */ |
627 socket_open(); |
627 socket_open(); |
628 |
628 |
629 /* Registre the functions and tables */ |
629 /* Register the functions and tables */ |
630 luaL_newmetatable(L, "SSL:Connection"); |
630 luaL_newmetatable(L, "SSL:Connection"); |
631 lua_newtable(L); |
631 lua_newtable(L); |
632 luaL_register(L, NULL, meta); |
632 luaL_register(L, NULL, meta); |
633 lua_setfield(L, -2, "__index"); |
633 lua_setfield(L, -2, "__index"); |
634 lua_pushcfunction(L, meth_destroy); |
634 lua_pushcfunction(L, meth_destroy); |