How to check a signed DLL

I created my own certificate for signing a DLL. When I load this DLL into my C ++ application, I can check if the code signing certificate is valid using the WinVerifyTrust api.

But I cannot find a way to detect that the DLL was signed by one of my certificates. Even using the CryptQueryObject api, I do not find useful information.

Does anyone have an idea on how to do this? Or is this event possible?

thanks

+5
source share
3 answers
+1
source

, , . , . , , ..

0

, Windows, , , :

  • CryptQueryObject CERT_QUERY_OBJECT_FILE
  • CryptMsgGetParam CMSG_SIGNER_CERT_INFO_PARAM HCRYPTMSG,
  • CertCompareIntegerBlob, () ( ) ,

- , . , .

: PCERT_INFO (CERT_INFO::SerialNumber) CryptMsgGetParam. , .

: , , WinVerifyTrust ( ) . , , .

0

All Articles