aboutsummaryrefslogtreecommitdiff
path: root/test/testutil
diff options
context:
space:
mode:
Diffstat (limited to 'test/testutil')
-rw-r--r--test/testutil/helper.c2
-rw-r--r--test/testutil/stanza.c10
2 files changed, 5 insertions, 7 deletions
diff --git a/test/testutil/helper.c b/test/testutil/helper.c
index 8da42b0..9c985e2 100644
--- a/test/testutil/helper.c
+++ b/test/testutil/helper.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2020-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
diff --git a/test/testutil/stanza.c b/test/testutil/stanza.c
index a3f833a..3fae0b4 100644
--- a/test/testutil/stanza.c
+++ b/test/testutil/stanza.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2017-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -126,11 +126,9 @@ int test_readstanza(STANZA *s)
if (s->numpairs == 0)
s->start = s->curr;
- if (strcmp(key, "PrivateKey") == 0) {
- if (!read_key(s))
- return 0;
- }
- if (strcmp(key, "PublicKey") == 0) {
+ if (strcmp(key, "PrivateKey") == 0
+ || strcmp(key, "PublicKey") == 0
+ || strcmp(key, "ParamKey") == 0) {
if (!read_key(s))
return 0;
}