RSA BSAFE SSL-C

Security protocol components for C

Search

Error Codes

This section details the codes returned from SSL_get_error() and provides information about the success of SSL I/O operations. See SSL_do_handshake(), SSL_read() and SSL_write().

Defines

#define SSL_ERROR_NONE
 Indicates that the operation was completed successfully.

#define SSL_ERROR_SSL
 Indicates that an error occurred as a result of an SSL protocol failure. More...

#define SSL_ERROR_WANT_READ
 Indicates that a read was attempted and the operating system returned that the operation could not be completed without blocking the caller. More...

#define SSL_ERROR_WANT_WRITE
 Indicates that a write was attempted and the operating system indicated the operation could not be completed without blocking the caller. More...

#define SSL_ERROR_WANT_X509_LOOKUP
 If a client certificate is set via SSL_CTX_set_client_cert_cb() and the callback returns -1 (indicating the certificate is not available), this error means that the state engine is waiting for a certificate lookup.

#define SSL_ERROR_SYSCALL
 Indicates a system call error. More...

#define SSL_ERROR_ZERO_RETURN
 Indicates a read or write system call has returned zero. More...

#define SSL_ERROR_WANT_CONNECT
 Indicates the BIO has not connected. More...


Define Documentation

#define SSL_ERROR_SSL
 

Indicates that an error occurred as a result of an SSL protocol failure. For example, failure to verify peer certificate during the handshake.

#define SSL_ERROR_SYSCALL
 

Indicates a system call error. Check the system error number and any corresponding system error text to determine the cause.

#define SSL_ERROR_WANT_CONNECT
 

Indicates the BIO has not connected. Under Win32 it is possible to detect a completing connection (this is not applicable to UNIX systems).

#define SSL_ERROR_WANT_READ
 

Indicates that a read was attempted and the operating system returned that the operation could not be completed without blocking the caller. The SSL connection is marked in non-blocking mode. Errors are normally only reported during non-blocking I/O. Repeat the function call at a later time to read the remaining data.

#define SSL_ERROR_WANT_WRITE
 

Indicates that a write was attempted and the operating system indicated the operation could not be completed without blocking the caller. The SSL connection is marked in non-blocking mode. Errors are normally only reported during non-blocking I/O. Repeat the function call when the underlying I/O layer reports that it is ready to write data.

#define SSL_ERROR_ZERO_RETURN
 

Indicates a read or write system call has returned zero. This can occur if the socket has closed (and consequently the protocol fails).


Copyright (c) 1999-2004 RSA Security Inc. All rights reserved. 050-001001-2600-000-000 - 2.6