src/ssl.c

changeset 13
ebe0d286481c
parent 12
ac943b31f40c
child 14
1927b7b32faf
equal deleted inserted replaced
12:ac943b31f40c 13:ebe0d286481c
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);

mercurial