mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-05 09:08:04 -05:00
signer extended key usage XKU_CODE_SIGN
This commit is contained in:
parent
7c39f73ff6
commit
077783aa2a
@ -2130,7 +2130,7 @@ static int verify_authenticode(PKCS7 *p7, ASN1_UTCTIME *timestamp_time, GLOBAL_O
|
|||||||
signers = PKCS7_get0_signers(p7, NULL, 0);
|
signers = PKCS7_get0_signers(p7, NULL, 0);
|
||||||
if (!signers || sk_X509_num(signers) != 1)
|
if (!signers || sk_X509_num(signers) != 1)
|
||||||
ret = 1; /* FAILED */
|
ret = 1; /* FAILED */
|
||||||
if (!(X509_get_extension_flags(sk_X509_value(signers, 0)) && XKU_CODE_SIGN)) {
|
if (!(X509_get_extended_key_usage(sk_X509_value(signers, 0)) & XKU_CODE_SIGN)) {
|
||||||
fprintf(stderr, "Unsupported Signer's certificate purpose\n");
|
fprintf(stderr, "Unsupported Signer's certificate purpose\n");
|
||||||
ret = 1; /* FAILED */
|
ret = 1; /* FAILED */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user