From c970ecdd75d4e7b3203a788f28b6e40cd532759b Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 18 Mar 2012 17:42:43 +0100 Subject: [PATCH] Test SPTPS messages sent while key renegotation is in progress. --- src/sptps_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sptps_test.c b/src/sptps_test.c index 3ee7ab6..79a1a85 100644 --- a/src/sptps_test.c +++ b/src/sptps_test.c @@ -154,9 +154,11 @@ int main(int argc, char *argv[]) { break; if(buf[0] == '^') sptps_send_record(&s, SPTPS_HANDSHAKE, NULL, 0); - else if(buf[0] == '$') + else if(buf[0] == '$') { sptps_force_kex(&s); - else + if(len > 1) + sptps_send_record(&s, 0, buf, len); + } else if(!sptps_send_record(&s, buf[0] == '!' ? 1 : 0, buf, buf[0] == '\n' ? 0 : buf[0] == '*' ? sizeof buf : len)) return 1; } -- 2.25.1