Merge pull request #381 from kojo1/kexDh

macro guarde for SendKexDhGexRequest
pull/384/head
John Safranek 2021-12-16 17:02:02 -08:00 committed by GitHub
commit 51638545d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5589,9 +5589,9 @@ static int DoPacket(WOLFSSH* ssh)
if (ssh->isKeying == 1 &&
ssh->connectState == CONNECT_SERVER_CHANNEL_REQUEST_DONE) {
if (ssh->handshake->kexId == ID_DH_GEX_SHA256) {
#ifndef WOLFSSH_NO_DH
#if !defined(WOLFSSH_NO_DH) && !defined(WOLFSSH_NO_DH_GEX_SHA256)
ssh->error = SendKexDhGexRequest(ssh);
#endif
#endif
}
else
ssh->error = SendKexDhInit(ssh);

View File

@ -713,7 +713,7 @@ int wolfSSH_connect(WOLFSSH* ssh)
}
if (ssh->handshake->kexId == ID_DH_GEX_SHA256) {
#ifndef WOLFSSH_NO_DH
#if !defined(WOLFSSH_NO_DH) && !defined(WOLFSSH_NO_DH_GEX_SHA256)
ssh->error = SendKexDhGexRequest(ssh);
#endif
}