|
Radcli library 1.5.2
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 and reconnect if needed
Probes the TLS or DTLS session with a TLS heartbeat and reconnects if the session is dead. Must be called when no other thread is using the session (e.g., from a dedicated watchdog thread that holds the lock).
| rh | a handle to parsed configuration |
| int rc_tls_fd | ( | rc_handle * | rh | ) |