| CTelnetClient::GetSecurityInformation Method | |||||||||||
Parameters
Return Value
Remarks
Example
// Notifies the user if the connection is secure or not
SECURITYINFO securityInfo;
securityInfo.dwSize = sizeof(SECURITYINFO);
if (pClient->GetSecurityInformation(&securityInfo))
{
if (securityInfo.dwProtocol == SECURITY_PROTOCOL_NONE)
{
MessageBox(NULL, _T("The connection is not secure"),
_T("Connection"), MB_OK);
}
else
{
if (securityInfo.dwCertStatus == SECURITY_CERTIFICATE_VALID)
{
MessageBox(NULL, _T("The connection is secure"),
_T("Connection"), MB_OK);
}
else
{
MessageBox(NULL, _T("The server certificate not valid"),
_T("Connection"), MB_OK);
}
}
}
Requirements
See Also |
|||||||||||
|
Copyright © 2026 Catalyst Development Corporation. All rights reserved. |
|||||||||||