summaryrefslogtreecommitdiff
path: root/security/openconnect/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/openconnect/files')
-rw-r--r--security/openconnect/files/patch-openconnect-internal.h14
-rw-r--r--security/openconnect/files/patch-stoken.c22
2 files changed, 14 insertions, 22 deletions
diff --git a/security/openconnect/files/patch-openconnect-internal.h b/security/openconnect/files/patch-openconnect-internal.h
new file mode 100644
index 000000000000..ca02258192c0
--- /dev/null
+++ b/security/openconnect/files/patch-openconnect-internal.h
@@ -0,0 +1,14 @@
+--- openconnect-internal.h.orig 2022-08-27 20:09:15 UTC
++++ openconnect-internal.h
+@@ -135,6 +135,11 @@
+ #include <spawn.h>
+ #endif
+
++
++#ifdef __FreeBSD__
++extern char **environ;
++#endif
++
+ /* Equivalent of "/dev/null" on Windows.
+ * See https://stackoverflow.com/a/44163934
+ */
diff --git a/security/openconnect/files/patch-stoken.c b/security/openconnect/files/patch-stoken.c
deleted file mode 100644
index e265f5ef3cd9..000000000000
--- a/security/openconnect/files/patch-stoken.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- stoken.c.orig 2021-07-01 20:58:46 UTC
-+++ stoken.c
-@@ -100,6 +100,7 @@ static int decrypt_stoken(struct openconnect_info *vpn
-
- form.opts = opts;
- form.message = _("Enter credentials to unlock software token.");
-+ form.auth_id = "_rsa_unlock";
-
- if (stoken_devid_required(vpninfo->stoken_ctx)) {
- opt->type = OC_FORM_OPT_TEXT;
-@@ -206,9 +207,10 @@ static int request_stoken_pin(struct openconnect_info
-
- form.opts = opts;
- form.message = _("Enter software token PIN.");
-+ form.auth_id = "_rsa_pin";
-
- opt->type = OC_FORM_OPT_PASSWORD;
-- opt->name = (char *)"password";
-+ opt->name = (char *)"pin";
- opt->label = _("PIN:");
- opt->flags = OC_FORM_OPT_NUMERIC;
-