diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-11 15:35:10 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-11 15:39:35 +0200 |
commit | 3b878dae7e7bb00f8d886426dc4f75bf45b8113f (patch) | |
tree | be56294135f3b29788390b4695de1c973b454302 /src/charon/plugins/eap_aka | |
parent | 3a7bd9bd49685c96313038436b770115651b7caa (diff) | |
download | strongswan-3b878dae7e7bb00f8d886426dc4f75bf45b8113f.tar.bz2 strongswan-3b878dae7e7bb00f8d886426dc4f75bf45b8113f.tar.xz |
Removed chunk_from_buf() in favor of a simpler chunk_from_chars() macro
Diffstat (limited to 'src/charon/plugins/eap_aka')
-rw-r--r-- | src/charon/plugins/eap_aka/eap_aka.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/charon/plugins/eap_aka/eap_aka.c b/src/charon/plugins/eap_aka/eap_aka.c index e76778f22..11e7515ef 100644 --- a/src/charon/plugins/eap_aka/eap_aka.c +++ b/src/charon/plugins/eap_aka/eap_aka.c @@ -251,20 +251,17 @@ struct private_eap_aka_t { }; /** Family key, as proposed in S.S0055 */ -static u_int8_t fmk_buf[] = {0x41, 0x48, 0x41, 0x47}; -static chunk_t fmk = chunk_from_buf(fmk_buf); +static chunk_t fmk = chunk_from_chars(0x41, 0x48, 0x41, 0x47); /** Authentication management field */ -static u_int8_t amf_buf[] = {0x00, 0x01}; -static chunk_t amf = chunk_from_buf(amf_buf); +static chunk_t amf = chunk_from_chars(0x00, 0x01); /** AT_CLIENT_ERROR_CODE AKA attribute */ -static u_int8_t client_error_code_buf[] = {0, 0}; -static chunk_t client_error_code = chunk_from_buf(client_error_code_buf); +static chunk_t client_error_code = chunk_from_chars(0, 0); /** previously used sqn by peer, next one must be greater */ static u_int8_t peer_sqn_buf[6]; -static chunk_t peer_sqn = chunk_from_buf(peer_sqn_buf); +static chunk_t peer_sqn = {peer_sqn_buf, sizeof(peer_sqn_buf)}; /** set SQN to the current time */ static void update_sqn(u_int8_t *sqn, time_t offset) |