nn::ssl::Connection::SetServerCertBuffer Member Function

Syntax

nn::Result SetServerCertBuffer(
     uptr bufferAddress,
     size_t bufferSize
);

Arguments

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.

Return Values

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

Description

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.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL