CryptoSys PKI Pro Manual

cmsQuerySigData

Query a CMS signed-data object file for selected information.

Syntax

[VBA]
Public Function cmsQuerySigData ( _
    szFileIn As String, _
    szQuery As String, _
    Optional nOptions As Long = 0 _
) As String

Parameters

szFileIn
Name of file containing CMS signed-data object (binary or base64-encoded) or the data as a base64 or PEM string.
szQuery
Query string (case insensitive). Valid queries are:
"version"
"eContentType"
"HASeContent"
"CountOfCertificates"
"CountOfSignerInfos"
"CountOfDigestAlgs"
"certificate/N"
"signerInfoVersion"
"digestAlgorithm"
"signatureAlgorithm"
"HASsignedAttributes"
"signingTime"
"messageDigest"
"pssParams"
"HASsigningCertificate"
"HASalgorithmProtection"
"HASsubjectKeyIndentifier"
"signerIdentifier"
nOptions
For future use.

Return Value

String: String containing the result or an empty string if not found or error.

Remarks

By default, the function queries the first signerInfo in the file. To query the nth signerInfo append "/n" to the query string, e.g. "signerInfoVersion/2" to find the version number of the second signerInfo in the file.
[PREV: cmsQueryEnvData...]   [Contents]   [Index]   
   [NEXT: cmsReadEnvDataToBytes...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.