mirror of
https://github.com/openbsd/src.git
synced 2026-04-25 06:35:46 +00:00
rpki-client: improve error message for duplicate TALs
Using several TALs with the same SPKI doesn't really make sense and no longer works due to the way the CCR is constructed. Since the current error is very confusing, hint more clearly at the problem. Prompted by a report by Gregory Edigarov on misc. ok job
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ccr.c,v 1.19 2025/09/22 07:37:28 job Exp $ */
|
||||
/* $OpenBSD: ccr.c,v 1.20 2025/10/04 10:52:30 tb Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2025 Job Snijders <job@openbsd.org>
|
||||
*
|
||||
@@ -669,7 +669,7 @@ ccr_insert_tas(struct ccr_tas_tree *tree, const struct cert *cert)
|
||||
errx(1, "hex_decode");
|
||||
|
||||
if (RB_INSERT(ccr_tas_tree, tree, cts) != NULL)
|
||||
errx(1, "CCR TAS tree corrupted");
|
||||
errx(1, "multiple TALs with the same key are not supported");
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
||||
Reference in New Issue
Block a user