nn::http::Connection::SetRootCa Member Functionnn::Result SetRootCa( const u8 * pCertData, size_t certDataSize );
| Name | Description | |
|---|---|---|
| in | pCertData | Certificate data. The data format is X.509 v3 certificate data (ASN.1 definition) that has been DER-encoded to binary data. |
| in | certDataSize | Size of pCertData. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultInvalidParamErr | Error indicating an invalid parameter. Specify valid values for all parameters and call this function again. |
| 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. Call this function multiple times to set multiple certificates.
CONFIDENTIAL