NSSLSetSession

Syntax

#include <cafe.h>
#include <cafe/nssl/nsslclient.h>

NSSL_RVAL NSSLSetSession(NSSLConnectionHandle connection,
                         NSSLSessionHandle session);

Parameters

connection A handle to an SSL connection for which to set the session.
session A handle to an SSL session (obtained using NSSLGetSession) to be reused.

Return Values

NSSL_RVAL NSSL_RVAL_OK upon success, error code of type NSSL_RVAL on failure.

Description

Sets an SSL session handle on a connection so as to reuse the session.

Do Not Call From

Callbacks Do not call this function from any callback function.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.

See Also

NSSLGetSession
NSSLFreeSession
NSSLRemoveSession

Revision History

2012/08/16 Cleanup pass.
2012/04/06 Initial version.


CONFIDENTIAL