diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2012-02-26 17:59:43 +0400 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-03-12 11:05:38 +0100 |
commit | bd5651f0ec7aa94627a2a6868dd458f016750a35 (patch) | |
tree | 9f5dcd01bd90d1ea78cd841f00fea4bbdc3a6dee /doc/mpls/cli_summary.txt | |
parent | ef1b78cbcd8ade0c5444f3ff9dd00a40e760ec92 (diff) |
ospfd: bring ospf_check_auth() into focus
The old ospf_check_auth() function did two different jobs depending on
AuType. For Null and Simple cases it actually authenticated the packet,
but for Cryptographic case it only checked declared packet size (not
taking the actual number of bytes on wire into account). The calling
function, ospf_verify_header(), had its own set of MD5/checksum checks
dispatched depending on AuType.
This commit makes the packet size check work against the real number of
bytes and moves it to ospf_packet_examine(). All MD5/checksum
verification is now performed in ospf_check_auth() function.
* ospf_packet.c
* ospf_packet_examin(): check length with MD5 bytes in mind
* ospf_verify_header(): remove all AuType-specific code
* ospf_check_auth(): completely rewrite
Diffstat (limited to 'doc/mpls/cli_summary.txt')
0 files changed, 0 insertions, 0 deletions