aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_eap.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-08-30 11:14:01 +0200
committerMartin Willi <martin@revosec.ch>2012-09-12 13:19:52 +0200
commitfb3cf1b70815b65d0a07427f773d34b8e6afee38 (patch)
tree3b495699ea8d1a81cd0f1340edf52c22c555aa37 /src/libtls/tls_eap.c
parent5b96503e136215b7f23c0c65fe09ccd8e26c57a6 (diff)
downloadstrongswan-fb3cf1b70815b65d0a07427f773d34b8e6afee38.tar.bz2
strongswan-fb3cf1b70815b65d0a07427f773d34b8e6afee38.tar.xz
Whitespace cleanups in tls_eap
Diffstat (limited to 'src/libtls/tls_eap.c')
-rw-r--r--src/libtls/tls_eap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libtls/tls_eap.c b/src/libtls/tls_eap.c
index 59723fdd1..30533902a 100644
--- a/src/libtls/tls_eap.c
+++ b/src/libtls/tls_eap.c
@@ -82,7 +82,7 @@ struct private_tls_eap_t {
int processed;
/**
- * Maximum number of processed EAP messages/fragments
+ * Maximum number of processed EAP messages/fragments
*/
int max_msg_count;
};
@@ -141,7 +141,7 @@ METHOD(tls_eap_t, initiate, status_t,
*out = chunk_clone(chunk_from_thing(pkt));
DBG2(DBG_TLS, "sending %N start packet (%u bytes)",
- eap_type_names, this->type, sizeof(eap_tls_packet_t));
+ eap_type_names, this->type, sizeof(eap_tls_packet_t));
DBG3(DBG_TLS, "%B", out);
return NEED_MORE;
}
@@ -237,7 +237,7 @@ static status_t build_pkt(private_tls_eap_t *this, chunk_t *out)
kind = "further fragment";
if (this->first_fragment)
{
- pkt->flags |= EAP_TLS_LENGTH;
+ pkt->flags |= EAP_TLS_LENGTH;
this->first_fragment = FALSE;
kind = "first fragment";
}
@@ -267,7 +267,7 @@ static status_t build_pkt(private_tls_eap_t *this, chunk_t *out)
if (reclen)
{
if (pkt->flags & EAP_TLS_LENGTH)
- {
+ {
htoun32(pkt + 1, reclen);
len += sizeof(u_int32_t);
pkt->flags |= EAP_TLS_LENGTH;
@@ -276,14 +276,14 @@ static status_t build_pkt(private_tls_eap_t *this, chunk_t *out)
{
/* get rid of the reserved length field */
memcpy(buf+sizeof(eap_packet_t),
- buf+sizeof(eap_packet_t)+sizeof(u_int32_t), len);
+ buf+sizeof(eap_packet_t)+sizeof(u_int32_t), len);
}
}
len += sizeof(eap_tls_packet_t);
htoun16(&pkt->length, len);
*out = chunk_clone(chunk_create(buf, len));
DBG2(DBG_TLS, "sending %N %s (%u bytes)",
- eap_type_names, this->type, kind, len);
+ eap_type_names, this->type, kind, len);
DBG3(DBG_TLS, "%B", out);
return NEED_MORE;
}