Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
context: for dhparam_cb, pass is_export as boolean
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
darkrain42 committed Sep 12, 2013
1 parent 9c7c96f commit 8cf7eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8cf7eb2

Please sign in to comment.