27 RCSIDH(eap_tls_h,
"$Id: a9ce51788b05b15313de04aa4723ddfe236e7229 $")
34 #include <sys/types.h>
35 #include <sys/socket.h>
36 #include <netinet/in.h>
37 #include <netinet/tcp.h>
44 #include <arpa/inet.h>
50 #include <freeradius-devel/radiusd.h>
51 #include <freeradius-devel/tls.h>
71 #define BUFFER_SIZE 1024
81 #define TLS_HEADER_LEN 4
void eap_tls_gen_eap_key(RADIUS_PACKET *packet, SSL *s, uint32_t header)
void eap_tls_gen_mppe_keys(REQUEST *request, SSL *s, char const *prf_label)
Generate keys according to RFC 2716 and add to the reply.
struct tls_data_t eap_tls_data_t
fr_tls_server_conf_t * eap_tls_conf_parse(CONF_SECTION *cs, char const *key)
Parse TLS configuration.
int eap_tls_success(eap_session_t *eap_session) CC_HINT(nonnull)
Send an EAP-TLS success.
tls_session_t * eap_tls_session_init(eap_session_t *eap_session, fr_tls_server_conf_t *tls_conf, bool client_cert)
Create a new tls_session_t associated with an eap_session_t.
Tracks the progress of a single session of any EAP method.
int eap_tls_start(eap_session_t *eap_session) CC_HINT(nonnull)
Send an initial EAP-TLS request to the peer.
USES_APPLE_DEPRECATED_API fr_tls_status_t eap_tls_process(eap_session_t *eap_session)
Process an EAP TLS request.
void eap_ttls_gen_challenge(SSL *s, uint8_t *buffer, size_t size)
int eap_tls_request(eap_session_t *eap_session) CC_HINT(nonnull)
Frames the OpenSSL data that needs to be sent to the client in an EAP-Request.
int eap_tls_fail(eap_session_t *eap_session) CC_HINT(nonnull)
Send an EAP-TLS failure.
#define USES_APPLE_DEPRECATED_API