fragattacks/src/pae
Sabrina Dubroca 7612e65b9b mka: Add error handling for secy_init_macsec() calls
secy_init_macsec() can fail (if ->macsec_init fails), and
ieee802_1x_kay_init() should handle this and not let MKA run any
further, because nothing is going to work anyway.

On failure, ieee802_1x_kay_init() must deinit its kay, which will free
kay->ctx, so ieee802_1x_kay_init callers (only ieee802_1x_alloc_kay_sm)
must not do it. Before this patch there is a double-free of the ctx
argument when ieee802_1x_kay_deinit() was called.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
2017-09-10 22:23:25 +03:00
..
ieee802_1x_cp.c mka: Add enable_encrypt op and call it from CP state machine 2016-11-20 00:35:23 +02:00
ieee802_1x_cp.h mka: Get rid of struct ieee802_1x_cp_conf 2016-08-28 21:56:17 +03:00
ieee802_1x_kay_i.h mka: Send MKPDUs forever if mode is PSK 2017-02-10 19:48:12 +02:00
ieee802_1x_kay.c mka: Add error handling for secy_init_macsec() calls 2017-09-10 22:23:25 +03:00
ieee802_1x_kay.h mka: Make MKA actor priority configurable 2016-12-25 11:41:46 +02:00
ieee802_1x_key.c MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00
ieee802_1x_key.h MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00
ieee802_1x_secy_ops.c mka: Add enable_encrypt op and call it from CP state machine 2016-11-20 00:35:23 +02:00
ieee802_1x_secy_ops.h mka: Add enable_encrypt op and call it from CP state machine 2016-11-20 00:35:23 +02:00
Makefile MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00