|
|
|
|
|
CertificateExtract (Function) In french: CertificatExtrait Extracts a certificate from a signature buffer or from a print duplicate.
MonCertificat is Certificate
MonCertificat = CertificateExtract(bufSignature, certificateFromBuffer)
IF MonCertificat = Null THEN
Error("Erreur lors de la récupération du certificat." + CR + ErrorInfo())
RETURN
END
SWITCH MonCertificat.Reliability
CASE certificateOk: Info("Certificat valide")
CASE certificateInvalid: Info("Certificat invalide")
CASE certificateUntrusted: Info("Racine de confiance du certificat non fiable")
CASE certificateExpired: Info("Dates de validité du certificat expiré")
END
Syntax
<Result> = CertificateExtract(<Signed Element> [, <Option>])
<Result>: Certificate variable Certificate variable extracted from the element containing the signature. <Signed Element>: Buffer variable or character string Corresponds to: - a signature buffer. This buffer was obtained via:
- the path of a signed print duplicate. The print duplicate was signed with iParameterDuplicate.
<Option>: Optional Integer constant Specifies the type of element used: | | certificateFromBuffer (Default value) | The element is a signature buffer. | certificateFromDuplicate | The element is the path of a signed duplicate file. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|