Merge pull request #122 from Zash/dane

DANE support
This commit is contained in:
Bruno Silvestre
2019-07-11 09:50:25 -03:00
committed by GitHub
4 changed files with 84 additions and 0 deletions

View File

@ -704,6 +704,17 @@ static int set_alpn_cb(lua_State *L)
}
/*
* DANE
*/
static int set_dane(lua_State *L)
{
SSL_CTX *ctx = lsec_checkcontext(L, 1);
int ret = SSL_CTX_dane_enable(ctx);
lua_pushboolean(L, ret);
return 1;
}
/**
* Package functions
*/
@ -728,6 +739,8 @@ static luaL_Reg funcs[] = {
{"setcurveslist", set_curves_list},
#endif
{"setdane", set_dane},
{NULL, NULL}
};