mirror of https://github.com/wolfSSL/wolfssh.git
internal, ssh: quiet unused RSA-only locals
Three locals feed only RSA and ECDSA code and draw -Werror warnings once both are compiled out. - digestSz in DoUserAuthRequestPublicKey(), read only by the RSA and ECDSA verify arms - heap in SendKexGetSigningKey(), used only where a key is allocated - the id parameter of CurveNameForId(), unread with no curve to namepull/1260/merge
parent
7324d4b4da
commit
bf4f1a1964
|
|
@ -11648,6 +11648,9 @@ static int DoUserAuthRequestPublicKey(WOLFSSH* ssh, WS_UserAuthData* authData,
|
|||
}
|
||||
}
|
||||
|
||||
/* Only the RSA and ECDSA arms above read the digest size;
|
||||
* with both compiled out the switch is just the default. */
|
||||
WOLFSSH_UNUSED(digestSz);
|
||||
WS_FORCEZERO(digest, sizeof(digest));
|
||||
}
|
||||
|
||||
|
|
@ -15736,6 +15739,8 @@ static int SendKexGetSigningKey(WOLFSSH* ssh,
|
|||
|
||||
|
||||
heap = ssh->ctx->heap;
|
||||
/* Only the RSA, ECDSA and ML-DSA arms allocate; Ed25519 does not. */
|
||||
WOLFSSH_UNUSED(heap);
|
||||
|
||||
#ifdef WOLFSSH_TPM
|
||||
ssh->handshake->useTpm = ssh->ctx->privateKey[keyIdx].isTpm;
|
||||
|
|
|
|||
Loading…
Reference in New Issue