diff options
author | Job Snijders <job@cvs.openbsd.org> | 2022-08-30 18:56:50 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2022-08-30 18:56:50 +0000 |
commit | 975df0051921999deb5f9ec410f0c48df8270c15 (patch) | |
tree | b7abb2c9c6cd453d07661cc69182b1d73bec21e0 /usr.sbin/rpki-client/mft.c | |
parent | 52e475daa87fd022cbb6bd58c7331e04fccef8f1 (diff) |
Add support for ASPA objects (draft-ietf-sidrops-aspa-profile-10)
ASPA objects are published in the RPKI and can be used to detect and
mitigate BGP route leaks. Validated ASPA Payloads are visible through
filemode (-f) and the JSON output format (-j).
With feedback from tb@
OK claudio@ tb@
Diffstat (limited to 'usr.sbin/rpki-client/mft.c')
-rw-r--r-- | usr.sbin/rpki-client/mft.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index 64477b10eb4..8631071e753 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.73 2022/08/18 15:20:27 job Exp $ */ +/* $OpenBSD: mft.c,v 1.74 2022/08/30 18:56:49 job Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -166,6 +166,8 @@ rtype_from_file_extension(const char *fn) return RTYPE_GBR; if (strcasecmp(fn + sz - 4, ".sig") == 0) return RTYPE_RSC; + if (strcasecmp(fn + sz - 4, ".asa") == 0) + return RTYPE_ASPA; return RTYPE_INVALID; } @@ -205,6 +207,7 @@ rtype_from_mftfile(const char *fn) case RTYPE_CRL: case RTYPE_GBR: case RTYPE_ROA: + case RTYPE_ASPA: return type; default: return RTYPE_INVALID; |