krb5: add extra sanity check in pk_verify_sign()
Assert either PKINIT signer certificate was validated, or caller requested no KDC certificate validation.
This commit is contained in:
@@ -859,6 +859,10 @@ pk_verify_sign(krb5_context context,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
heim_assert((verify_flags & HX509_CMS_VSE_VALIDATED) ||
|
||||||
|
(id->flags & PKINIT_NO_KDC_ANCHOR),
|
||||||
|
"Either PKINIT signer must be validated, or NO_KDC_ANCHOR must be set");
|
||||||
|
|
||||||
if ((verify_flags & HX509_CMS_VSE_VALIDATED) == 0)
|
if ((verify_flags & HX509_CMS_VSE_VALIDATED) == 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user