-/* $OpenBSD: rrdp.h,v 1.7 2021/11/24 15:24:16 claudio Exp $ */
+/* $OpenBSD: rrdp.h,v 1.8 2022/02/03 18:19:32 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
#ifndef _RRDPH_
#define _RRDPH_
+#define RRDP_XMLNS "http://www.ripe.net/rpki/rrdp"
#define MAX_VERSION 1
#define log_debuginfo(format, ...) logx(format, ##__VA_ARGS__)
-/* $OpenBSD: rrdp_delta.c,v 1.6 2021/11/09 11:01:04 claudio Exp $ */
+/* $OpenBSD: rrdp_delta.c,v 1.7 2022/02/03 18:19:32 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
"parse failed - entered delta elem unexpectedely");
for (i = 0; attr[i]; i += 2) {
const char *errstr;
- if (strcmp("xmlns", attr[i]) == 0) {
+ if (strcmp("xmlns", attr[i]) == 0 &&
+ strcmp(RRDP_XMLNS, attr[i + 1]) == 0) {
has_xmlns = 1;
continue;
}
-/* $OpenBSD: rrdp_notification.c,v 1.12 2021/11/24 15:24:16 claudio Exp $ */
+/* $OpenBSD: rrdp_notification.c,v 1.13 2022/02/03 18:19:32 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
"parse failed - entered notification elem unexpectedely");
for (i = 0; attr[i]; i += 2) {
const char *errstr;
- if (strcmp("xmlns", attr[i]) == 0) {
+ if (strcmp("xmlns", attr[i]) == 0 &&
+ strcmp(RRDP_XMLNS, attr[i + 1]) == 0) {
has_xmlns = 1;
continue;
}
-/* $OpenBSD: rrdp_snapshot.c,v 1.5 2021/11/09 11:01:04 claudio Exp $ */
+/* $OpenBSD: rrdp_snapshot.c,v 1.6 2022/02/03 18:19:32 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
"parse failed - entered snapshot elem unexpectedely");
for (i = 0; attr[i]; i += 2) {
const char *errstr;
- if (strcmp("xmlns", attr[i]) == 0) {
+ if (strcmp("xmlns", attr[i]) == 0 &&
+ strcmp(RRDP_XMLNS, attr[i + 1]) == 0) {
has_xmlns = 1;
continue;
}