RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

Protocol State Identifiers

This section details the valid values for ssl->state which are used to indicate the status of the SSL connection establishment, identifying the stage at which the connection failed.
note.gif
The following macros should only be used to implement non-blocking I/O.

Defines

#define SSL_ST_CONNECT
 Indicates the client connect state.

#define SSL_ST_ACCEPT
 Indicates the server accept state.

#define SSL_ST_MASK
 Indicates the mask used for states.

#define SSL_ST_INIT
 Indicates that the protocol is initialized, in either the connect or accept states.

#define SSL_ST_BEFORE
 Indicates that the handshake has not started yet.

#define SSL_ST_OK
 Indicates successful handshake completion.

#define SSL_ST_RENEGOTIATE
 Indicates protocol renegotiation or initialized state.

#define SSL_CB_LOOP
 Indicates the state in the callback loop.

#define SSL_CB_EXIT
 Indicates the callback exit state.

#define SSL_CB_READ
 Indicates the callback read state.

#define SSL_CB_WRITE
 Indicates the callback write state.

#define SSL_CB_ALERT
 Indicates the callback alert state.

#define SSL_CB_READ_ALERT
 Indicates the callback read alert state.

#define SSL_CB_WRITE_ALERT
 Indicates the callback write alert state.

#define SSL_CB_ACCEPT_LOOP
 Indicates the state in the server callback loop.

#define SSL_CB_ACCEPT_EXIT
 Indicates the server callback exit state.

#define SSL_CB_CONNECT_LOOP
 Indicates the state in the client callback loop.

#define SSL_CB_CONNECT_EXIT
 Indicates the client callback exit state.

#define SSL_CB_HANDSHAKE_START
 Indicates the state in the handshake start.

#define SSL_CB_HANDSHAKE_DONE
 Indicates that the state handshake is complete.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1