NSSLGetSession

Syntax

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

NSSLSessionHandle NSSLGetSession(NSSLConnectionHandle connection);

Parameters

connection A handle to a SSL connection to query.

Return Values

NSSLSessionHandle, the NSSL session handle (0 or positive value) on success, error code of type NSSL_RVAL on failure.

Description

Returns a handle to the SSL session, which can be used for session resumption across SSL connections (under the same context). The session handle is reference-counted. NSSLGetSession increments the count; use NSSLFreeSession to decrement it.

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

NSSLSetSession
NSSLFreeSession
NSSLRemoveSession

Revision History

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


CONFIDENTIAL