| RSA BSAFE Micro Edition Suite |
Streamlined security for mobile and embedded devices |
 
![]() |
Functions | |
| SSL_SESSION* R_CDECL | SSL_SESSION_new (void) |
| Creates a new SSL_SESSION structure. More... | |
| unsigned long R_CDECL | SSL_SESSION_hash (SSL_SESSION *sess) |
| Generates a hash of the SSL_SESSION structure. More... | |
| int R_CDECL | SSL_SESSION_cmp (SSL_SESSION *sessa, SSL_SESSION *sessb) |
| Compares the session identifiers of a pair of sessions. More... | |
| void R_CDECL | SSL_SESSION_free (SSL_SESSION *sess) |
| Frees a reference to an SSL_SESSION structure. More... | |
| void R_CDECL | SSL_SESSION_reference_inc (SSL_SESSION *sess) |
| Increments the reference count of the session. More... | |
| int R_CDECL | SSL_set_session (SSL *ssl, SSL_SESSION *sess) |
| Copies the session identifier information from the SSL_SESSION structure session to the SSL structure ssl. More... | |
| R_TIME_T* R_CDECL | SSL_SESSION_get_time (SSL_SESSION *sess, R_TIME_T *stime) |
| Returns the start time of the SSL session's lifetime. More... | |
| R_TIME_T* R_CDECL | SSL_SESSION_set_time (SSL_SESSION *sess, R_TIME_T *stime) |
| Sets the beginning time of the SSL session's lifetime. More... | |
| long R_CDECL | SSL_SESSION_get_timeout (SSL_SESSION *sess) |
| Returns the lifetime of the session in seconds. More... | |
| long R_CDECL | SSL_SESSION_set_timeout (SSL_SESSION *sess, long tmout) |
| Sets a new lifetime for the session in seconds. More... | |
| void R_CDECL | SSL_copy_session (SSL *to, SSL *from) |
| Copies the session identifier and other associated information from one SSL structure to another. More... | |
| SSLCERT* R_CDECL | SSL_SESSION_get_peer_certificate (SSL_SESSION *sess) |
| Returns the peer certificate associated with session passed in at SSL_SESSION sess. More... | |
| int R_CDECL | SSL_SESSION_get_master_key_length (SSL_SESSION *sess) |
| Returns the length of the master key associated with session passed in at sess. More... | |
| unsigned char* R_CDECL | SSL_SESSION_get_master_key (SSL_SESSION *sess) |
| Returns the master key associated with the session passed in at sess. More... | |
| unsigned int R_CDECL | SSL_SESSION_get_session_id_length (SSL_SESSION *sess) |
| Returns the length of the session identifier for the specified session. More... | |
| unsigned char* R_CDECL | SSL_SESSION_get_session_id (SSL_SESSION *sess) |
| Returns the session identifier for the specified session. More... | |
| int R_CDECL | SSL_SESSION_set_not_reusable (SSL_SESSION *sess) |
| Sets the status of an SSL_SESSION to prevent the session from being reused in new connections. More... | |
| int R_CDECL | SSL_SESSION_get_not_reusable (SSL_SESSION *sess) |
| Retrieves a flag that indicates if the SSL session is not allowed to be reused. More... | |
| int R_CDECL | SSL_SESSION_print (BIO *bio, SSL_SESSION *sess) |
| Prints information regarding the SSL_SESSION sess as ASCII text to the BIO bio. More... | |
| int R_CDECL | SSL_SESSION_print_fp (FILE *fp, SSL_SESSION *sess) |
| Prints information regarding the SSL_SESSION structure sess as ASCII text to the file fp. More... | |
| SSL_SESSION * | SSL_get_session (SSL *ssl) |
| Returns a reference to the SSL_SESSION structure by directly accessing the SSL structure. More... | |
|
||||||||||||
|
Copies the session identifier and other associated information from one SSL structure to another. The associated information includes:
|
|
|
Returns a reference to the SSL_SESSION structure by directly accessing the SSL structure. This structure holds information negotiated during the SSL handshake and can be reused in subsequent negotiations to reduce ssl connection time.
|
|
||||||||||||
|
Compares the session identifiers of a pair of sessions. The session identifier is a random data string which means there is no guarantee of uniqueness but accidental clashes should be rare. The session identifier details depend upon the SSL protocol version so this is also used to compare sessions.
|
|
|
Frees a reference to an SSL_SESSION structure. When a reference is freed it is no longer valid but the session structure may still exist in memory if other references remain. When the final reference is removed the structure memory is freed.
|
|
|
Returns the master key associated with the session passed in at sess.
|
|
|
Returns the length of the master key associated with session passed in at sess.
|
|
|
Retrieves a flag that indicates if the SSL session is not allowed to be reused. Valid SSL sessions can be reused for multiple connections in a shortened handshake. If a session is marked as "not resumable" then sessions that are currently open can continue but no new SSL connections can be made with the same handshake parameters. Once a session is marked this way it cannot be changed again.
|
|
|
Returns the peer certificate associated with session passed in at SSL_SESSION sess.
|
|
|
Returns the session identifier for the specified session.
|
|
|
Returns the length of the session identifier for the specified session.
|
|
||||||||||||
|
Returns the start time of the SSL session's lifetime. The start of the session lifetime is set by SSL_SESSION_new() to be the current machine time.
|
|
|
Returns the lifetime of the session in seconds. The lifetime of an SSL session defines the time period from the session's creation that it may be used to establish a connection with a peer that shares the same session data.
|
|
|
Generates a hash of the SSL_SESSION structure.
|
|
|
Creates a new SSL_SESSION structure. SSL_SESSION contains the data that defines a successful SSL connection that may be reused for subsequent connection attempts. Some of this data is secret to the connection parties and should not be broadcast.
|
|
||||||||||||
|
Prints information regarding the SSL_SESSION sess as ASCII text to the BIO bio. The information includes a start time value (in seconds since Jan 1, 1970).
|
|
||||||||||||
|
Prints information regarding the SSL_SESSION structure sess as ASCII text to the file fp.
|
|
|
Increments the reference count of the session. SSL sessions may be used by several program structures simultaneously and these references are tracked via the reference count. In multithreaded environments a locking function should be set to ensure that references are incremented safely. A reference to a session is removed via SSL_SESSION_free().
|
|
|
Sets the status of an SSL_SESSION to prevent the session from being reused in new connections. Valid
|
|
||||||||||||
|
Sets the beginning time of the SSL session's lifetime. The start of the session lifetime is set by SSL_SESSION_new() to be the current machine time. This function can be used to reset that start time if the session is not established immediately.
|
|
||||||||||||
|
Sets a new lifetime for the session in seconds. The lifetime of an SSL_SESSION defines the time period from the session's creation that it may be used to establish a connection with a peer that shares the same session data. Setting a new lifetime does not affect the creation time of the session.
|
|
||||||||||||
|
Copies the session identifier information from the SSL_SESSION structure session to the SSL structure ssl.
|