Merge pull request #4237 from kabuobeid/dupSSL

Fix missing CBIOSend and properly guard hmac in DupSSL().
This commit is contained in:
David Garske 2021-07-28 10:50:17 -07:00 committed by GitHub
commit 50ae93071d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -676,9 +676,15 @@ static int DupSSL(WOLFSSL* dup, WOLFSSL* ssl)
XMEMSET(&ssl->encrypt, 0, sizeof(Ciphers));
dup->IOCB_WriteCtx = ssl->IOCB_WriteCtx;
dup->CBIOSend = ssl->CBIOSend;
#ifdef OPENSSL_EXTRA
dup->cbioFlag = ssl->cbioFlag;
#endif
dup->wfd = ssl->wfd;
dup->wflags = ssl->wflags;
#ifndef WOLFSSL_AEAD_ONLY
dup->hmac = ssl->hmac;
#endif
#ifdef HAVE_TRUNCATED_HMAC
dup->truncated_hmac = ssl->truncated_hmac;
#endif