nn::http::Connection::SetRootCaStore Member Function

Syntax

nn::Result SetRootCaStore(
     CertStore & certStore
);

Arguments

Name Description
in certStore Certificate store to set.

Return Values

Returns the function's execution result. Returns a Result 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 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).

Description

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.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL