nn::ssl::Connection::DoHandshake Member Function

Syntax

nn::Result DoHandshake(
     size_t * pServerCertSize,
     u32 * pServerCertNum = NULL
);

Arguments

Name Description
out pServerCertSize Buffer storing the size of the saved server certificate data.
out pServerCertNum Buffer storing the number of saved server certificates. (This is used to get the number of certificates in the certificate chain if the GET_ALL_SERVER_CERT_CHAIN option is enabled and all certificate data in the server certificate chain has been saved. It can be omitted if the number of certificates is not required. This could be the case if you are only getting the server certificate, for example.)

Return Values

Returns the result of the operation.

Description

This syntax allows you to receive information about the certificate data that is saved in the save buffer for server certificates that were set using the SetServerCertBuffer function while carrying out SSL handshaking. If the SetServerCertBuffer function has not been called (in other words, if the save buffer for server certificates has not been set), this will behave just like the DoHandshake function.


CONFIDENTIAL