From fff311aa2b0e30521b407411f151e570f36e2dae Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Wed, 15 May 2024 21:46:39 +0000 Subject: [PATCH] change random padding length --- tunnels/server/openssl/openssl_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tunnels/server/openssl/openssl_server.c b/tunnels/server/openssl/openssl_server.c index b4e777c7..6df481a8 100644 --- a/tunnels/server/openssl/openssl_server.c +++ b/tunnels/server/openssl/openssl_server.c @@ -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;