mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-13 06:24:22 +02:00
Fix check for error in DANE functions
This commit is contained in:
@ -709,9 +709,10 @@ static int set_alpn_cb(lua_State *L)
|
||||
*/
|
||||
static int set_dane(lua_State *L)
|
||||
{
|
||||
int ret;
|
||||
SSL_CTX *ctx = lsec_checkcontext(L, 1);
|
||||
int ret = SSL_CTX_dane_enable(ctx);
|
||||
lua_pushboolean(L, ret);
|
||||
ret = SSL_CTX_dane_enable(ctx);
|
||||
lua_pushboolean(L, (ret > 0));
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user