nn::http::Connection::SetClientCert Member Functionnn::Result SetClientCert( const u8 * pCertData, size_t certDataSize, const u8 * pPrivateKeyData, size_t privateKeyDataSize );
| 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. |
| in | pPrivateKeyData | Private key data. X.509 key data (ASN.1 definition) that has been DER-encoded to binary data. |
| in | privateKeyDataSize | Size of pPrivateKeyData. |
Result listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| 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 a client certificate based on certificate and private key data.
CONFIDENTIAL