Radcli library 1.4.0
A simple radius library
|
TLS and DTLS related functions. More...
Macros | |
#define | DEFAULT_DTLS_SECRET "radius/dtls" |
#define | DEFAULT_TLS_SECRET "radsec" |
#define | TIME_ALIVE 120 |
Typedefs | |
typedef struct tls_int_st | tls_int_st |
typedef struct tls_st | tls_st |
Functions | |
int | rc_tls_fd (rc_handle *rh) |
int | rc_check_tls (rc_handle *rh) |
TLS and DTLS related functions.
Note that, that API is for improving TLS and DTLS support in an application. Applications are not required to use this API to support them. TLS and DTLS support can be enabled by the administrator transparently from the radiusclient configuration file.
int rc_check_tls | ( | rc_handle * | rh | ) |
Check established TLS/DTLS channels for operation
This function will check whether the channel(s) established for TLS or DTLS are operational, and will re-establish the channel if necessary. If this function fails then the TLS or DTLS state should be considered as disconnected. It must be called at a time when the sessions are not in usage (e.g., in a different thread).
Note: It is recommended to run this function periodically if you have a DTLS channel since an undetected server reset may result to a black hole behavior of the server.
rh | a handle to parsed configuration |
int rc_tls_fd | ( | rc_handle * | rh | ) |