nn::http::Connection::SetVerifyOption Member Functionnn::Result SetVerifyOption( u32 verifyOption );
| Name | Description | |
|---|---|---|
| in | verifyOption | SSL server verification options. These verification options are disabled in the default server verification. (This argument can be omitted when default server verification is used. ) Specify a nn::ssl::VerifyOption enumerated type value representing the verification options to perform. (To specify multiple options, use the bitwise OR of the desired values.) Currently, this argument can be set to the following values: nn::ssl::VERIFY_DATE: Verifies whether the certificate has expired.nn::ssl::USE_SESSION_CACHE: Resume any existing session. (If you disconnect and reconnect to the same host, the system will attempt to resume the previous session.)Note: When using this API function to set options, you must do so before starting the communication session that the options are for (that is, you must call this function before calling Connect or ConnectAsync). |
Result listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultNotConnectedErr | Error indicating a Connection class instance for which the target URL is not assigned. The function has not done anything as it has been called on a Connection instance for which you have not yet successfully called Initialize. |
| ResultNotInitializedErr | Error indicating that the library is not initialized. None of this library's functions can be used until you first call nn::http::Initialize. |
| A value other than the above. | Unexpected error (See http_Result.h for details). |
Sets options that relate to SSL server verification.
※ The authentication operations below are defined in the nn::ssl::VerifyOption enumerated type and implemented by default.
・CommonName authentication (nn::ssl::VERIFY_COMMON_NAME)
・RootCA authentication (nn::ssl::VERIFY_ROOT_CA)
・SubjectAlternativeName authentication (nn::ssl::VERIFY_SUBJECT_ALT_NAME)
CONFIDENTIAL