Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICert2::matchDnsNameW ( const P6WCHAR pszDnsName,
P6CERTMATCHFLAGS  fFlags 
)
pure virtual

Matches the hostname against the certificate hostname.

Parameters
pszDnsName[ in ] A pointer to a NULL terminated wide character string formatted according to section 3.5 "Preferred name syntax" of RFC 1034.
fFlags[ in ] One of the P6R::P6CERTMATCHFLAGS flags: P6CMF_NOFLAGS, P6CMF_DISABLE_WILDCARDS or P6CMF_ALWAYS_CHECK_SUBJECT. These may be ORed together.
Returns
SuccessP6R::eOkThe hostname match the certificate.
FailureP6R::eInvalidArgpszDnsName was NULL or flags are out of range.
P6R::eNotInitializedThe certificate interface has not been initialized.
P6R::eNotFoundThe hostname did not match the certificate