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

Syntax

nn::Result DoHandshake(
     void
);

Arguments

None.

Return Values

Returns the processing result.


Value Description
ResultSuccess Process was successful.
ResultProtocolFailedErr Indicates that an error occurred due to SSL protocol failure. (This can occur if client certificate authentication fails on the server side, for example.) To reconnect, first call the Connection class's Finalize function, and then call Initialize again.
ResultWantRead Indicates, when an asynchronous socket was being used, that the receive function (nn::socket::Read, etc.) returned without waiting for the operation to complete. Please try again.
ResultWantWrite Indicates, when an asynchronous socket was being used, that the receive function (nn::socket::Write, etc.) returned without waiting for the operation to complete. Please try again.
ResultSystemCallErr Indicates that the library function being used internally (mostly the socket functions) returned an unexpected error. (There was an abnormal response from the server, etc.) To reconnect, first call the Connection class's Finalize function, and then call Initialize again.
ResultSocketZeroReturn Indicates that the socket read/write function returned 0 (in other words, indicates that communication was aborted). To reconnect, first call the Connection class's Finalize function, and then call Initialize again.
ResultWantConnect Indicates, when an asynchronous socket is being used, that the connection still has not completed. Please try again.
ResultVerifyCertErr Indicates that certificate verification failed. (When this is returned, it is possible to get the cause of the failure with the nn::ssl::Connection::GetCertVerifyErrors function.) To reconnect, first call the Connection class's Finalize function, and then call Initialize again.
ResultIpcSessionErr Error indicating an uninitialized connection. 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 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

Performs an SSL handshake.


CONFIDENTIAL