Export 'config' table (#149)

Avoid duplicating variable 'ssl_options'.
This commit is contained in:
Bruno Silvestre
2019-10-09 14:49:58 -03:00
parent 2480572bdf
commit 4903e2f2c1
10 changed files with 197 additions and 179 deletions

View File

@ -50,8 +50,8 @@ static p_context testctx(lua_State *L, int idx)
*/
static int set_option_flag(const char *opt, unsigned long *flag)
{
ssl_option_t *p;
for (p = ssl_options; p->name; p++) {
lsec_ssl_option_t *p;
for (p = lsec_get_ssl_options(); p->name; p++) {
if (!strcmp(opt, p->name)) {
*flag |= p->code;
return 1;