diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-04-11 10:03:13 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-04-11 10:03:13 +0000 |
commit | 44111adc767e2c6d824cd3db02015e26a1c28301 (patch) | |
tree | 1035b87db58f4e548f0a21ca379b50307e163d4c | |
parent | 1ff46b950d4bd14d1c1e61c6b81883e8fca814b1 (diff) |
Sort RTYPE in case alphabetically and mention ASPA in the comment.
No functional change.
-rw-r--r-- | usr.sbin/rpki-client/mft.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/mft.c b/usr.sbin/rpki-client/mft.c index d3f33b735dc..d39d53688cc 100644 --- a/usr.sbin/rpki-client/mft.c +++ b/usr.sbin/rpki-client/mft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mft.c,v 1.56 2022/04/08 15:29:59 claudio Exp $ */ +/* $OpenBSD: mft.c,v 1.57 2022/04/11 10:03:12 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -145,7 +145,7 @@ valid_filename(const char *fn, size_t len) } /* - * Check that the file is a CER, CRL, GBR or a ROA. + * Check that the file is an ASPA, CER, CRL, GBR or a ROA. * Returns corresponding rtype or RTYPE_INVALID on error. */ static enum rtype @@ -155,11 +155,11 @@ rtype_from_mftfile(const char *fn) type = rtype_from_file_extension(fn); switch (type) { + case RTYPE_ASPA: case RTYPE_CER: case RTYPE_CRL: case RTYPE_GBR: case RTYPE_ROA: - case RTYPE_ASPA: return type; default: return RTYPE_INVALID; |