nn::ssl::Connection::SetServerCertBuffer Member Functionnn::Result SetServerCertBuffer( uptr bufferAddress, size_t bufferSize );
| Name | Description | |
|---|---|---|
| in | bufferAddress | Pointer to the start of the buffer. The memory for the buffer must be 4096-byte aligned. |
| in | bufferSize | Buffer size. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
Process was successful. |
| ResultServerCertBufAlreadySetErr | The buffer used to receive the server certificate has already been configured. To switch the buffer, call Finalize, then repeat the process starting with the call to Initialize. |
| ResultNotInitializedErr | Error indicating that the library is not initialized. None of the functions in this library can be run without first running nn::ssl::Initialize. |
| A value other than the above. | Unexpected error (see ssl_Result.h for error details). |
Configures the buffer used to get the server certificate. Use this after invoking the Initialize function. This function handles everything up to and including the buffer configuration. The server certificate will actually be written to the buffer when the DoHandshake function is called.
CONFIDENTIAL