|
@@ -147,7 +147,7 @@ static int pkcs7_find_key(struct pkcs7_message *pkcs7,
|
|
pr_devel("Sig %u: Found cert serial match X.509[%u]\n",
|
|
pr_devel("Sig %u: Found cert serial match X.509[%u]\n",
|
|
sinfo->index, certix);
|
|
sinfo->index, certix);
|
|
|
|
|
|
- if (x509->pub->pkey_algo != sinfo->sig->pkey_algo) {
|
|
|
|
|
|
+ if (strcmp(x509->pub->pkey_algo, sinfo->sig->pkey_algo) != 0) {
|
|
pr_warn("Sig %u: X.509 algo and PKCS#7 sig algo don't match\n",
|
|
pr_warn("Sig %u: X.509 algo and PKCS#7 sig algo don't match\n",
|
|
sinfo->index);
|
|
sinfo->index);
|
|
continue;
|
|
continue;
|