Interface WinCrypt.CryptGetSignerCertificateCallback

    • Method Detail

      • callback

        WinCrypt.CERT_CONTEXT.ByReference callback​(Pointer pvGetArg,
                                                   int dwCertEncodingType,
                                                   WinCrypt.CERT_INFO pSignerId,
                                                   WinCrypt.HCERTSTORE hMsgCertStore)
        Parameters:
        pvGetArg - A pointer to user-defined data passed on to the verification function as specified in the CRYPT_VERIFY_MESSAGE_PARA structure.
        dwCertEncodingType - Specifies the type of encoding used. It is always acceptable to specify both the certificate and message encoding types by combining them with a bitwise-OR operation as shown in the following example:

        X509_ASN_ENCODING | PKCS_7_ASN_ENCODING

        Currently defined encoding types are:

        • X509_ASN_ENCODING
        • PKCS_7_ASN_ENCODING
        pSignerId - A pointer to a CERT_INFO structure containing the issuer and serial number. Can be NULL if there is no content or signer.
        hMsgCertStore - A handle to the certificate store containing all the certificates and CRLs in the signed message.
        Returns:
        Pointer to a read-only WinCrypt.CERT_CONTEXT if a signer certificate is found, null if the function fails.