mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-27 04:58:20 +01:00
context: for dhparam_cb, pass is_export as boolean
The integer value that's actually returned for this flag is 2, which is fine for C (it is defined as true), but it's sufficiently surprising (because it's not 1), that this is worth fixing -- even if export ciphers aren't common. It should be a boolean anyway.
This commit is contained in:
parent
9c7c96f2a0
commit
8cf7eb2d78
@ -167,7 +167,7 @@ static DH *dhparam_cb(SSL *ssl, int is_export, int keylength)
|
||||
lua_gettable(L, -2);
|
||||
|
||||
/* Invoke the callback */
|
||||
lua_pushnumber(L, is_export);
|
||||
lua_pushboolean(L, is_export);
|
||||
lua_pushnumber(L, keylength);
|
||||
lua_call(L, 2, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user