Support output fragmentation of TLS records

This commit is contained in:
Martin Willi
2010-08-31 15:54:37 +02:00
parent f13a03add0
commit ecd98efa9d
5 changed files with 123 additions and 52 deletions
+3 -2
View File
@@ -251,7 +251,7 @@ static status_t process_buf(private_eap_tls_t *this)
{
status_t status;
status = this->tls->process(this->tls, this->input);
status = this->tls->process(this->tls, this->input.ptr, this->input.len);
if (status != NEED_MORE)
{
return status;
@@ -260,7 +260,8 @@ static status_t process_buf(private_eap_tls_t *this)
this->inpos = 0;
chunk_free(&this->output);
return this->tls->build(this->tls, &this->output);
this->output = chunk_alloc(EAP_TLS_FRAGMENT_LEN);
return this->tls->build(this->tls, this->output.ptr, &this->output.len, NULL);
}
METHOD(eap_method_t, process, status_t,
+3 -2
View File
@@ -254,7 +254,7 @@ static status_t process_buf(private_eap_ttls_t *this)
{
status_t status;
status = this->tls->process(this->tls, this->input);
status = this->tls->process(this->tls, this->input.ptr, this->input.len);
if (status != NEED_MORE)
{
return status;
@@ -263,7 +263,8 @@ static status_t process_buf(private_eap_ttls_t *this)
this->inpos = 0;
chunk_free(&this->output);
return this->tls->build(this->tls, &this->output);
this->output = chunk_alloc(EAP_TTLS_FRAGMENT_LEN);
return this->tls->build(this->tls, this->output.ptr, &this->output.len, NULL);
}
METHOD(eap_method_t, process, status_t,