mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Fix for example client to send HTTP GET on resume with "-g". Fixes issue with ./scripts/openssl.test
.
This commit is contained in:
@ -3419,8 +3419,16 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
}
|
||||
#endif /* HAVE_SECURE_RENEGOTIATION */
|
||||
|
||||
(void)ClientWrite(sslResume, kResumeMsg, (int)XSTRLEN(kResumeMsg),
|
||||
" resume", 0);
|
||||
XMEMSET(msg, 0, sizeof(msg));
|
||||
if (sendGET) {
|
||||
msgSz = (int)XSTRLEN(kHttpGetMsg);
|
||||
XMEMCPY(msg, kHttpGetMsg, msgSz);
|
||||
}
|
||||
else {
|
||||
msgSz = (int)XSTRLEN(kResumeMsg);
|
||||
XMEMCPY(msg, kResumeMsg, msgSz);
|
||||
}
|
||||
(void)ClientWrite(sslResume, msg, msgSz, " resume", 0);
|
||||
|
||||
(void)ClientRead(sslResume, reply, sizeof(reply)-1, sendGET,
|
||||
"Server resume: ", 0);
|
||||
|
Reference in New Issue
Block a user