src/context.h

changeset 38
4ecd7b0e67ea
parent 34
510432315106
child 41
e26f1f91118a
equal deleted inserted replaced
37:8904bda2369f 38:4ecd7b0e67ea
29 unsigned int verify_flags; 29 unsigned int verify_flags;
30 char mode; 30 char mode;
31 } t_context; 31 } t_context;
32 typedef t_context* p_context; 32 typedef t_context* p_context;
33 33
34 /* index into the SSL storage where the context is.
35 * see SSL_get_ex_data().
36 */
37 extern int luasec_ssl_idx;
38
39 p_context checkctx(lua_State *L, int idx); 34 p_context checkctx(lua_State *L, int idx);
40 /* Retrieve the SSL context from the Lua stack */ 35 /* Retrieve the SSL context from the Lua stack */
41 SSL_CTX *ctx_getcontext(lua_State *L, int idx); 36 SSL_CTX *ctx_getcontext(lua_State *L, int idx);
42 /* Retrieve the mode from the context in the Lua stack */ 37 /* Retrieve the mode from the context in the Lua stack */
43 char ctx_getmode(lua_State *L, int idx); 38 char ctx_getmode(lua_State *L, int idx);

mercurial