Merge branch 'openwrt-fixes'

Closes strongswan/strongswan#2185
This commit is contained in:
Tobias Brunner
2024-04-03 11:28:24 +02:00
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ METHOD(enumerator_t, section_enumerator_enumerate, bool,
if (uci_lookup(this->ctx, &element, this->package, if (uci_lookup(this->ctx, &element, this->package,
this->current->name, "name") == UCI_OK) this->current->name, "name") == UCI_OK)
{ /* use "name" attribute as config name if available ... */ { /* use "name" attribute as config name if available ... */
*value = uci_to_option(element)->value; *value = uci_to_option(element)->v.string;
} }
else else
{ /* ... or the section name becomes config name */ { /* ... or the section name becomes config name */
@@ -91,7 +91,7 @@ METHOD(enumerator_t, section_enumerator_enumerate, bool,
if (value && uci_lookup(this->ctx, &element, this->package, if (value && uci_lookup(this->ctx, &element, this->package,
this->current->name, this->keywords[i]) == UCI_OK) this->current->name, this->keywords[i]) == UCI_OK)
{ {
*value = uci_to_option(element)->value; *value = uci_to_option(element)->v.string;
} }
} }
@@ -80,7 +80,4 @@ typedef union {
#undef PARSE_ERROR #undef PARSE_ERROR
/* Eliminate macro conflicts */
#undef RNG
#endif /* WOLFSSL_PLUGIN_COMMON_H_ */ #endif /* WOLFSSL_PLUGIN_COMMON_H_ */
@@ -47,6 +47,8 @@
#include <wolfssl/ssl.h> #include <wolfssl/ssl.h>
#undef RNG
#ifndef FIPS_MODE #ifndef FIPS_MODE
#define FIPS_MODE 0 #define FIPS_MODE 0
#endif #endif