renamed tls_reader|writer to bio_* and moved to libstrongswan
This commit is contained in:
@@ -54,7 +54,7 @@ struct private_eap_ttls_avp_t {
|
||||
};
|
||||
|
||||
METHOD(eap_ttls_avp_t, build, void,
|
||||
private_eap_ttls_avp_t *this, tls_writer_t *writer, chunk_t data)
|
||||
private_eap_ttls_avp_t *this, bio_writer_t *writer, chunk_t data)
|
||||
{
|
||||
char zero_padding[] = { 0x00, 0x00, 0x00 };
|
||||
chunk_t avp_padding;
|
||||
@@ -73,14 +73,14 @@ METHOD(eap_ttls_avp_t, build, void,
|
||||
}
|
||||
|
||||
METHOD(eap_ttls_avp_t, process, status_t,
|
||||
private_eap_ttls_avp_t* this, tls_reader_t *reader, chunk_t *data)
|
||||
private_eap_ttls_avp_t* this, bio_reader_t *reader, chunk_t *data)
|
||||
{
|
||||
size_t len;
|
||||
chunk_t buf;
|
||||
|
||||
if (this->process_header)
|
||||
{
|
||||
tls_reader_t *header;
|
||||
bio_reader_t *header;
|
||||
u_int32_t avp_code;
|
||||
u_int8_t avp_flags;
|
||||
u_int32_t avp_len;
|
||||
@@ -110,7 +110,7 @@ METHOD(eap_ttls_avp_t, process, status_t,
|
||||
}
|
||||
|
||||
/* parse AVP header */
|
||||
header = tls_reader_create(this->input);
|
||||
header = bio_reader_create(this->input);
|
||||
success = header->read_uint32(header, &avp_code) &&
|
||||
header->read_uint8(header, &avp_flags) &&
|
||||
header->read_uint24(header, &avp_len);
|
||||
|
||||
@@ -25,8 +25,8 @@ typedef struct eap_ttls_avp_t eap_ttls_avp_t;
|
||||
|
||||
#include <library.h>
|
||||
|
||||
#include <tls_reader.h>
|
||||
#include <tls_writer.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <bio/bio_writer.h>
|
||||
|
||||
/**
|
||||
* EAP-TTLS Attribute-Value Pair (AVP) handler.
|
||||
@@ -43,7 +43,7 @@ struct eap_ttls_avp_t {
|
||||
* - FAILED if AVP processing failed
|
||||
* - NEED_MORE if another invocation of process/build needed
|
||||
*/
|
||||
status_t (*process)(eap_ttls_avp_t *this, tls_reader_t *reader,
|
||||
status_t (*process)(eap_ttls_avp_t *this, bio_reader_t *reader,
|
||||
chunk_t *data);
|
||||
|
||||
/**
|
||||
@@ -52,7 +52,7 @@ struct eap_ttls_avp_t {
|
||||
* @param writer TLS data buffer to write to
|
||||
* @param data EAP Message to send
|
||||
*/
|
||||
void (*build)(eap_ttls_avp_t *this, tls_writer_t *writer, chunk_t data);
|
||||
void (*build)(eap_ttls_avp_t *this, bio_writer_t *writer, chunk_t data);
|
||||
|
||||
/**
|
||||
* Destroy a eap_ttls_application_t.
|
||||
|
||||
@@ -67,7 +67,7 @@ struct private_eap_ttls_peer_t {
|
||||
#define MAX_RADIUS_ATTRIBUTE_SIZE 253
|
||||
|
||||
METHOD(tls_application_t, process, status_t,
|
||||
private_eap_ttls_peer_t *this, tls_reader_t *reader)
|
||||
private_eap_ttls_peer_t *this, bio_reader_t *reader)
|
||||
{
|
||||
chunk_t avp_data = chunk_empty;
|
||||
chunk_t eap_data = chunk_empty;
|
||||
@@ -229,7 +229,7 @@ METHOD(tls_application_t, process, status_t,
|
||||
}
|
||||
|
||||
METHOD(tls_application_t, build, status_t,
|
||||
private_eap_ttls_peer_t *this, tls_writer_t *writer)
|
||||
private_eap_ttls_peer_t *this, bio_writer_t *writer)
|
||||
{
|
||||
chunk_t data;
|
||||
eap_code_t code;
|
||||
|
||||
@@ -135,7 +135,7 @@ static status_t start_phase2_tnc(private_eap_ttls_server_t *this)
|
||||
}
|
||||
|
||||
METHOD(tls_application_t, process, status_t,
|
||||
private_eap_ttls_server_t *this, tls_reader_t *reader)
|
||||
private_eap_ttls_server_t *this, bio_reader_t *reader)
|
||||
{
|
||||
chunk_t data = chunk_empty;
|
||||
status_t status;
|
||||
@@ -284,7 +284,7 @@ METHOD(tls_application_t, process, status_t,
|
||||
}
|
||||
|
||||
METHOD(tls_application_t, build, status_t,
|
||||
private_eap_ttls_server_t *this, tls_writer_t *writer)
|
||||
private_eap_ttls_server_t *this, bio_writer_t *writer)
|
||||
{
|
||||
chunk_t data;
|
||||
eap_code_t code;
|
||||
|
||||
Reference in New Issue
Block a user