Click or drag to resize

CrestronFileTransferClientSetHostVerification Method

Set option to enable/disable host name verification.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public int SetHostVerification(
	bool verifyHost
)

Parameters

verifyHost  Boolean
The Boolean turning On/Off the Verification.

Return Value

Int32
Zero if successful. -1 if underlying object has not been properly initialized. 1 if internal error occurred. Use GetLastClientError() to retrieve the error code. 87 if invalid parameter was passed.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe FTC Client has already been closed or disposed.
Remarks
When negotiating a SSL connection, the server sends a certificate indicating its identity. When SetHostVerification is TRUE, then certificate must indicate that the server is the server to which you meant to connect, or the connection fails. Curl considers the server the intended one when the Common Name field or a Subject Alternate Name field in the certificate matches the host name in the URL to which you told Curl to connect. When the value is FALSE, the connection succeeds regardless of the names in the certificate. The default value for this option is TRUE. This option controls checking the server's certificate's claimed identity. The server could be lying. To control lying, see SetPeerVerification method.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also