Skip to content

Commit

Permalink
change random padding length
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed May 15, 2024
1 parent 992116c commit fff311a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tunnels/server/openssl/openssl_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ static size_t paddingDecisionCb(SSL *ssl, int type, size_t len, void *arg)
(void) len;
oss_server_con_state_t *cstate = arg;

if (cstate->reply_sent_tit >= 1 && cstate->reply_sent_tit < 6)
if (cstate->reply_sent_tit >= 1 && cstate->reply_sent_tit < 3)
{
return (16 * (160 + (0x7F & (size_t) fastRand())));
return (16 * (96 + (0xFF & (size_t) fastRand())));
}

return 0;
Expand Down

0 comments on commit fff311a

Please sign in to comment.