renamed tls_reader|writer to bio_* and moved to libstrongswan
This commit is contained in:
@@ -45,7 +45,7 @@ struct private_eap_peap_avp_t {
|
||||
};
|
||||
|
||||
METHOD(eap_peap_avp_t, build, void,
|
||||
private_eap_peap_avp_t *this, tls_writer_t *writer, chunk_t data)
|
||||
private_eap_peap_avp_t *this, bio_writer_t *writer, chunk_t data)
|
||||
{
|
||||
u_int8_t code;
|
||||
eap_packet_t *pkt;
|
||||
@@ -70,7 +70,7 @@ METHOD(eap_peap_avp_t, build, void,
|
||||
}
|
||||
|
||||
METHOD(eap_peap_avp_t, process, status_t,
|
||||
private_eap_peap_avp_t* this, tls_reader_t *reader, chunk_t *data,
|
||||
private_eap_peap_avp_t* this, bio_reader_t *reader, chunk_t *data,
|
||||
u_int8_t identifier)
|
||||
{
|
||||
u_int8_t code;
|
||||
|
||||
@@ -25,8 +25,8 @@ typedef struct eap_peap_avp_t eap_peap_avp_t;
|
||||
|
||||
#include <library.h>
|
||||
|
||||
#include <tls_reader.h>
|
||||
#include <tls_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <bio/bio_writer.h>
|
||||
|
||||
/**
|
||||
* EAP-PEAP Attribute-Value Pair (AVP) handler.
|
||||
@@ -44,7 +44,7 @@ struct eap_peap_avp_t {
|
||||
* - FAILED if AVP processing failed
|
||||
* - NEED_MORE if another invocation of process/build needed
|
||||
*/
|
||||
status_t (*process)(eap_peap_avp_t *this, tls_reader_t *reader,
|
||||
status_t (*process)(eap_peap_avp_t *this, bio_reader_t *reader,
|
||||
chunk_t *data, u_int8_t identifier);
|
||||
|
||||
/**
|
||||
@@ -53,7 +53,7 @@ struct eap_peap_avp_t {
|
||||
* @param writer TLS data buffer to write to
|
||||
* @param data EAP Message to send
|
||||
*/
|
||||
void (*build)(eap_peap_avp_t *this, tls_writer_t *writer, chunk_t data);
|
||||
void (*build)(eap_peap_avp_t *this, bio_writer_t *writer, chunk_t data);
|
||||
|
||||
/**
|
||||
* Destroy a eap_peap_application_t.
|
||||
|
||||
@@ -63,7 +63,7 @@ struct private_eap_peap_peer_t {
|
||||
};
|
||||
|
||||
METHOD(tls_application_t, process, status_t,
|
||||
private_eap_peap_peer_t *this, tls_reader_t *reader)
|
||||
private_eap_peap_peer_t *this, bio_reader_t *reader)
|
||||
{
|
||||
chunk_t data = chunk_empty;
|
||||
status_t status;
|
||||
@@ -185,7 +185,7 @@ METHOD(tls_application_t, process, status_t,
|
||||
}
|
||||
|
||||
METHOD(tls_application_t, build, status_t,
|
||||
private_eap_peap_peer_t *this, tls_writer_t *writer)
|
||||
private_eap_peap_peer_t *this, bio_writer_t *writer)
|
||||
{
|
||||
chunk_t data;
|
||||
eap_code_t code;
|
||||
|
||||
@@ -158,7 +158,7 @@ static status_t start_phase2_tnc(private_eap_peap_server_t *this)
|
||||
}
|
||||
|
||||
METHOD(tls_application_t, process, status_t,
|
||||
private_eap_peap_server_t *this, tls_reader_t *reader)
|
||||
private_eap_peap_server_t *this, bio_reader_t *reader)
|
||||
{
|
||||
chunk_t data = chunk_empty;
|
||||
status_t status;
|
||||
@@ -330,7 +330,7 @@ METHOD(tls_application_t, process, status_t,
|
||||
}
|
||||
|
||||
METHOD(tls_application_t, build, status_t,
|
||||
private_eap_peap_server_t *this, tls_writer_t *writer)
|
||||
private_eap_peap_server_t *this, bio_writer_t *writer)
|
||||
{
|
||||
chunk_t data;
|
||||
eap_code_t code;
|
||||
|
||||
Reference in New Issue
Block a user