sad: introduce sad_update_auth_tlv()
Some messages do not need a new authentication tlv attached but instead
only require the existing tlv to be updated because a protected field
was edited. These include messages being forward via a transparent clock
and management messages.
Introduce sad_update_auth_tlv() to search for existing authentication
tlvs, confirm their spp/security parameters are known, and regenerate
the icv.
Because this function still requires valid tlv pointers, add
msg_tlv_copy() to copy the pointers from the formatted message to the
raw message duplicate.
In addition add various calls to e2e_tc/p2p_tc to match port.c
Signed-off-by: Clay Kaiser <Clay.Kaiser@ibm.com>
Reviewed-by: Erez Geva <ErezGeva2@gmail.com>
Reviewed-by: Miroslav Lichvar <mlichvar@redhat.com>
8 files changed