X509CertHasKeyUsage (FUN)

FUNCTION X509CertHasKeyUsage : BOOL

Check if the specified key-usages are defined within the certificate.

InOut:

Scope

Name

Type

Comment

Return

X509CertHasKeyUsage

BOOL

True if all key usages are part of the certificate.

Input

hCert

RTS_IEC_HANDLE

Handle of to certificate.

keyUsage

UDINT

Key usages to check. Refer to Key Usage flags.

pResult

POINTER TO RTS_IEC_RESULT

POINTER TO error code