[Mono.Security] Add additional validation to AuthenticodeDeformatter
commit08361379e601b2e7231c2d0e973241d6e7d14bff
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 11 Jul 2023 16:29:30 +0000 (11 18:29 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 11 Jul 2023 16:29:55 +0000 (11 18:29 +0200)
treef5d3b84ed628d09eb56ef883869aea31a4a51d04
parent59a40d68879b69416f15a1d78198483cddda8cc0
[Mono.Security] Add additional validation to AuthenticodeDeformatter

Check that the Extended Key Usage extension in the signing certificate contains the OID for code signing so that we reject other types of certificates.
mcs/class/Mono.Security/Mono.Security.Authenticode/AuthenticodeDeformatter.cs