Test SPTPS messages sent while key renegotation is in progress.
This commit is contained in:
parent
3a4fe104a0
commit
c970ecdd75
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue