X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Feap-tls.h;h=2777d81f5c9b399fc02536bbf2de11e60552a079;hb=509f04959ad891d7f981f035ed461d51bd1f74b0;hp=b935ec524321d5952979b03299f6ba9b862f69e4;hpb=d706c95906d996534f13632a747af5dc617f306e;p=ppp.git diff --git a/pppd/eap-tls.h b/pppd/eap-tls.h index b935ec5..2777d81 100644 --- a/pppd/eap-tls.h +++ b/pppd/eap-tls.h @@ -30,9 +30,10 @@ * */ -#ifndef __EAP_TLS_H__ -#define __EAP_TLS_H__ +#ifndef PPP_EAP_TLS_H +#define PPP_EAP_TLS_H +#include "pppdconf.h" #include "eap.h" #include @@ -44,6 +45,8 @@ #define EAP_TLS_MAX_LEN 65536 /* max eap tls packet size */ +struct tls_info; + struct eaptls_session { u_char *data; /* buffered data */ @@ -56,7 +59,6 @@ struct eaptls_session SSL *ssl; /* ssl connection */ BIO *from_ssl; BIO *into_ssl; - char peer[MAXWORDLEN]; /* peer name */ char peercertfile[MAXWORDLEN]; bool alert_sent; u_char alert_sent_desc; @@ -65,12 +67,12 @@ struct eaptls_session char rtx[EAP_TLS_MAX_LEN]; /* retransmission buffer */ int rtx_len; int mtu; /* unit mtu */ - bool client; + struct tls_info *info; }; SSL_CTX *eaptls_init_ssl(int init_server, char *cacertfile, char *capath, - char *certfile, char *peer_certfile, char *privkeyfile); + char *certfile, char *privkeyfile, char *pkcs12); int eaptls_init_ssl_server(eap_state * esp); int eaptls_init_ssl_client(eap_state * esp); void eaptls_free_session(struct eaptls_session *ets); @@ -83,9 +85,9 @@ void eaptls_retransmit(struct eaptls_session *ets, u_char ** outp); int get_eaptls_secret(int unit, char *client, char *server, char *clicertfile, char *servcertfile, char *cacertfile, - char *capath, char *pkfile, int am_server); + char *capath, char *pkfile, char *pkcs12, int am_server); -#ifdef MPPE +#ifdef PPP_WITH_MPPE void eaptls_gen_mppe_keys(struct eaptls_session *ets, int client); #endif