GUAC-1171: Do not fall through to DSA if RSA signature fails.

This commit is contained in:
Michael Jumper 2015-07-12 22:24:26 -07:00
parent 3eac35c158
commit 1316743b02

View File

@ -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: {