[Mono.Security] Add additional validation to AuthenticodeDeformattermono-6.12.0.200
commitba344d3416d02d7da6b8a7e551e4af77ea961c1c
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:30:49 +0000 (11 18:30 +0200)
tree43467293567087f010ca9c50812fc63129bd42a1
parentf648ec1e0a66ac2d3216dae7a20c36fe6e61a6ec
[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