diff options
author | Mahdi Varasteh <varasteh@amnesh.ir> | 2023-09-12 13:39:44 +0200 |
---|---|---|
committer | Mahdi Varasteh <varasteh@amnesh.ir> | 2023-09-16 06:08:23 +0200 |
commit | f5011cd5ddfd0eabe359d7013747823c6bd4ed3f (patch) | |
tree | 0be666457c571176705bb970582b16fc4d2d688b /ospfd/ospf_auth.h | |
parent | Merge pull request #14364 from opensourcerouting/event-fix-delete-during-hash... (diff) | |
download | frr-f5011cd5ddfd0eabe359d7013747823c6bd4ed3f.tar.xz frr-f5011cd5ddfd0eabe359d7013747823c6bd4ed3f.zip |
[ospfd]: add support for RFC 5709 HMAC-SHA Auth
This patch includes:
* Implementation of RFC 5709 support in OSPF. Using
openssl library and FRR key-chain,
one can use SHA1, SHA256, SHA384, SHA512 and
keyed-MD5( backward compatibility with RFC 2328) HMAC algs.
* Updating documentation of OSPF
* add topotests for new HMAC algorithms
Signed-off-by: Mahdi Varasteh <varasteh@amnesh.ir>
Diffstat (limited to 'ospfd/ospf_auth.h')
-rw-r--r-- | ospfd/ospf_auth.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ospfd/ospf_auth.h b/ospfd/ospf_auth.h new file mode 100644 index 000000000..6f6d3db58 --- /dev/null +++ b/ospfd/ospf_auth.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2023 Amnesh Inc. + * Mahdi Varasteh + */ + +#ifndef _ZEBRA_OSPF_AUTH_H +#define _ZEBRA_OSPF_AUTH_H + +#include <ospfd/ospf_gr.h> +#include <ospfd/ospf_packet.h> + +int ospf_auth_check(struct ospf_interface *oi, struct ip *iph, struct ospf_header *ospfh); +int ospf_auth_check_digest(struct ospf_interface *oi, struct ip *iph, struct ospf_header *ospfh); +int ospf_auth_make(struct ospf_interface *oi, struct ospf_packet *op); +int ospf_auth_make_digest(struct ospf_interface *oi, struct ospf_packet *op); +int ospf_auth_type(struct ospf_interface *oi); +int ospf_auth_make_data(struct ospf_interface *oi, struct ospf_header *ospfh); + +#endif /* _ZEBRA_OSPF_AUTH_H */ |