CWebView::IsSecure Method  
 
BOOL IsSecure();

The IsSecure method determines if the current page was retrieved using a secure connection.

Parameters

None.

Return Value

If the connection was secure, the return value is non-zero. If the connection was not secure or there were problems (such as an expired certificate), the return value is zero.

Remarks

The IsSecure method checks whether the current page was retrieved using a secure connection. Because the security state of the session changes several times as a page is loaded, this value should only be considered authoritative after navigation has completed. It is possible for the method to initially return TRUE as the page is loading, but return FALSE when navigation completes if the page contains mixed content.

This method only returns TRUE if the document and all its assets were retrieved using a secure connection. The security certificate must be valid and the connection cannot use weak encryption or deprecated cipher suites. If a secure connection was used but there were problems detected with the certificate or security protocol, this method will return FALSE. For more information about the connection, use the GetSecurityInfo method.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cshtmv12.lib

See Also