GUAC-1171: Do not fall through to DSA if RSA signature fails.
This commit is contained in:
parent
3eac35c158
commit
1316743b02
@ -178,6 +178,7 @@ int guac_common_ssh_key_sign(guac_common_ssh_key* key, const char* data,
|
|||||||
case SSH_KEY_RSA:
|
case SSH_KEY_RSA:
|
||||||
if (RSA_sign(NID_sha1, digest, dlen, sig, &len, key->rsa) == 1)
|
if (RSA_sign(NID_sha1, digest, dlen, sig, &len, key->rsa) == 1)
|
||||||
return len;
|
return len;
|
||||||
|
break;
|
||||||
|
|
||||||
case SSH_KEY_DSA: {
|
case SSH_KEY_DSA: {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user