X509CertCheckHost
(FUN)
FUNCTION X509CertCheckHost : BOOL
Check if a certificate is bound to a specific host name. Both subject and subject alternative names are checked.
- InOut:
Scope
Name
Type
Comment
Return
X509CertCheckHost
BOOL
True if the host name is part of the certificate.
Input
hCert
RTS_IEC_HANDLE
Handle of to certificate.
pHost
POINTER TO STRING
Hostname to check.
flags
RtsX509CertCheckFlags
Flags how to check for the host name. Values of the enumeration can be combined.
pResult
POINTER TO RTS_IEC_RESULT
Pointer to the error code. ERR_PARAMETER: hCert is invalid, ERR_OK: everything went fine.