nn::http::Connection::SetClientCert Member Functionnn::Result SetClientCert( ClientCert & clientCert );
| Name | Description | |
|---|---|---|
| in | clientCert | Client certificate to set. |
Result listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultNoClientCertErr | Error indicating that the specified client certificate has not been registered. Either nn::ClientCert::Initialize has not yet been called for the instance of ClientCert passed as an argument, or nn::ClientCert::Finalize has already been called. Call this function again, passing in an instance of ClientCert for which you have already called nn::ClientCert::Initialize. |
| ResultCertExistErr | Error indicating that another client certificate has already been configured using this function. To configure a different client certificate, first call the Finalize function, and then call Initialize again. |
| ResultInvalidParamErr | Error indicating an invalid parameter. Specify valid values for all parameters and call this function again. |
| 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 the client certificate using a ClientCert instance. (Use this to reuse the same client certificate with multiple HTTPS communication sessions. ) Do not release the configured certificate during HTTPS communication with the communication targets.
CONFIDENTIAL