NetworkManager-libreswan/0001-Export-esp-option.patch

44 lines
1.5 KiB
Diff

From ce3b4049ce916d23b7c8e57d43765e7eb044779b Mon Sep 17 00:00:00 2001
From: Gris Ge <fge@redhat.com>
Date: Mon, 13 Oct 2025 17:48:07 +0800
Subject: [PATCH] Export `esp` option
Unit test case updated.
Resolves: https://issues.redhat.com/browse/RHEL-119653
Signed-off-by: Gris Ge <fge@redhat.com>
---
shared/test-utils.c | 1 +
shared/utils.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/shared/test-utils.c b/shared/test-utils.c
index 76c903e..16a96d1 100644
--- a/shared/test-utils.c
+++ b/shared/test-utils.c
@@ -199,6 +199,7 @@ test_config_write (void)
" salifetime=24h\n"
" rightsubnet=0.0.0.0/0\n"
" rekey=yes\n"
+ " esp=aes_gcm256\n"
" phase2alg=aes_gcm256\n"
" keyingtries=1\n"
" leftxauthclient=yes\n"
diff --git a/shared/utils.c b/shared/utils.c
index cdaaaf0..ac735a5 100644
--- a/shared/utils.c
+++ b/shared/utils.c
@@ -338,7 +338,7 @@ static const struct LibreswanParam params[] = {
/* Special. */
{ NM_LIBRESWAN_KEY_REKEY, add_rekey, PARAM_PRINTABLE },
- { NM_LIBRESWAN_KEY_ESP, add },
+ { NM_LIBRESWAN_KEY_ESP, add, PARAM_PRINTABLE },
/* Used internally or just ignored altogether. */
{ NM_LIBRESWAN_KEY_VENDOR, add, PARAM_IGNORE },
--
2.51.0