skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: SSL Application Programming Interface (API) Reference SSL Application Programming Interface (API) Reference
go to previous page: SSL_accept SSL_accept
go to next page: SSL_CIPHER_get_nameSSL_CIPHER_get_name
end of book navigation links


SSL_alert_type_string
Description
Notes
Return Values
See Also
 

NAME

SSL_alert_type_string, SSL_alert_type_string_long, SSL_alert_desc_string, SSL_alert_desc_string_long - get textual description of alert information

Synopsis  

#include <openssl/ssl.h>
const char *SSL_alert_type_string(int value);
const char *SSL_alert_type_string_long(int value);
const char *SSL_alert_desc_string(int value);
const char *SSL_alert_desc_string_long(int value);


return to top DESCRIPTION  

SSL_alert_type_string() returns a one letter string indicating the type of the alert specified by value.

SSL_alert_type_string_long() returns a string indicating the type of the alert specified by value.

SSL_alert_desc_string() returns a two letter string as a short form describing the reason of the alert specified by value .

SSL_alert_desc_string_long() returns a string describing the reason of the alert specified by value.


return to top NOTES  

When one side of an SSL/TLS communication wants to inform the peer about a special situation, it sends an alert. The alert is sent as a special message and does not influence the normal data stream (unless its contents results in the communication being canceled).

A warning alert is sent, when a non-fatal error condition occurs. The "close notify" alert is sent as a warning alert. Other examples for non-fatal errors are certificate errors ("certificate expired", "unsupported certificate"), for which a warning alert may be sent. (The sending party may however decide to send a fatal error.) The receiving side may cancel the connection on reception of a warning alert on it discretion.

Several alert messages must be sent as fatal alert messages as specified by the TLS RFC. A fatal alert always leads to a connection abort.


return to top RETURN VALUES  

The following strings can occur for SSL_alert_type_string() or SSL_alert_type_string_long():

The following strings can occur for SSL_alert_desc_string() or SSL_alert_desc_string_long():


return to top SEE ALSO  

ssl(3) , SSL_CTX_set_info_callback(3)
go to previous page: SSL_accept SSL_accept
go to next page: SSL_CIPHER_get_nameSSL_CIPHER_get_name