nn::http::Connection::SetRootCaStore Member Functionnn::Result SetRootCaStore( CertStore & certStore );
| Name | Description | |
|---|---|---|
| in | certStore | Certificate store to set. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultNoCaCertStoreErr | Error indicating that the specified CA certificate store has not been registered. Either nn::CertStore::Initialize has not yet been called for the instance of ClientStore passed as an argument, or nn::CertStore::Finalize has already been called. Call this function again, passing in an instance of Cert for which you have already called nn::CertStore::Initialize. |
| ResultNotConnectedErr | Error indicating that no target URL was assigned to the Connection object. No action performed because the Connection object has not been initialized by a successful call of 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 CA certificate store. (Use this to reuse the same set of CA certificates with multiple HTTPS communication sessions. Do not release the configured certificate store during HTTPS communication with the communication targets.
CONFIDENTIAL