stun

simple point to point tunnel
git clone git://git.2f30.org/stun
Log | Files | Refs | README

commit 8185df99f1342f988b0c25cc6992571e5503bf9f
parent 384eb347ce4ee45bef59e50444208df94bcc8737
Author: sin <sin@2f30.org>
Date:   Wed, 30 Mar 2016 09:50:40 +0100

fix signedness issues

Diffstat:
Mstun.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stun.c b/stun.c @@ -164,7 +164,7 @@ revokeprivs(void) } int -prepkey(unsigned char *pw, int pwlen) +prepkey(char *pw, int pwlen) { int nrounds = 1000; @@ -834,7 +834,7 @@ main(int argc, char *argv[]) pw = getenv("STUNPW"); if (!pw) logerr("STUNPW is not set"); - prepkey((unsigned char *)pw, strlen(pw)); + prepkey(pw, strlen(pw)); explicit_bzero(pw, strlen(pw)); aesinit(&ectx, &dctx);