Collapse unknown / unsupport RSA sigtypes into one fallthrough
This commit is contained in:
parent
45f5e135ae
commit
090782c3c7
|
@ -1127,19 +1127,10 @@ verifyRSASignature(rpmts ts, char ** msg,
|
|||
signame = "RSA/SHA1";
|
||||
sigalg = SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION;
|
||||
break;
|
||||
case PGPHASHALGO_RIPEMD160:
|
||||
res = RPMRC_NOKEY;
|
||||
break;
|
||||
case PGPHASHALGO_MD2:
|
||||
signame = "RSA/MD2";
|
||||
sigalg = SEC_OID_PKCS1_MD2_WITH_RSA_ENCRYPTION;
|
||||
break;
|
||||
case PGPHASHALGO_TIGER192:
|
||||
res = RPMRC_NOKEY;
|
||||
break;
|
||||
case PGPHASHALGO_HAVAL_5_160:
|
||||
res = RPMRC_NOKEY;
|
||||
break;
|
||||
case PGPHASHALGO_SHA256:
|
||||
signame = "RSA/SHA256";
|
||||
sigalg = SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION;
|
||||
|
@ -1152,6 +1143,10 @@ verifyRSASignature(rpmts ts, char ** msg,
|
|||
signame = "RSA/SHA512";
|
||||
sigalg = SEC_OID_PKCS1_SHA512_WITH_RSA_ENCRYPTION;
|
||||
break;
|
||||
/* fallthrough for unsupported / unknown types */
|
||||
case PGPHASHALGO_TIGER192:
|
||||
case PGPHASHALGO_HAVAL_5_160:
|
||||
case PGPHASHALGO_RIPEMD160:
|
||||
default:
|
||||
res = RPMRC_NOKEY;
|
||||
sigalg = SEC_OID_UNKNOWN;
|
||||
|
|
Loading…
Reference in New Issue