summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-22 11:46:39 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-22 11:46:39 +0100
commitfdafecc0c569f7d5f818a5a2c56bf7ea1983d2f4 (patch)
treefd477f477561a269898b2eee681d08c1aed24b4d /interface-definitions
parent100b910e48e79a80a0850164a8f92949985bbdea (diff)
downloadvyos-1x-fdafecc0c569f7d5f818a5a2c56bf7ea1983d2f4.tar.gz
vyos-1x-fdafecc0c569f7d5f818a5a2c56bf7ea1983d2f4.zip
sstp: T2150: use full file path on SSL certificates
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/vpn-sstp.xml.in25
1 files changed, 18 insertions, 7 deletions
diff --git a/interface-definitions/vpn-sstp.xml.in b/interface-definitions/vpn-sstp.xml.in
index 59aae9f7f..b026417b3 100644
--- a/interface-definitions/vpn-sstp.xml.in
+++ b/interface-definitions/vpn-sstp.xml.in
@@ -260,25 +260,36 @@
<leafNode name="ca-cert-file">
<properties>
<help>Certificate Authority certificate</help>
- <completionHelp>
- <script>if [ -e /config/user-data/sstp ]; then ls /config/user-data/sstp; fi</script>
- </completionHelp>
+ <valueHelp>
+ <format>file</format>
+ <description>File in /config/auth directory</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-exists" argument="--directory /config/auth"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="cert-file">
<properties>
<help>Server Certificate</help>
<completionHelp>
- <script>if [ -e /config/user-data/sstp ]; then ls /config/user-data/sstp; fi</script>
+ <script>ls /config</script>
</completionHelp>
+ <constraint>
+ <validator name="file-exists" argument="--directory /config/auth"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="key-file">
<properties>
<help>Privat Key of the Server Certificate</help>
- <completionHelp>
- <script>if [ -e /config/user-data/sstp ]; then ls /config/user-data/sstp; fi</script>
- </completionHelp>
+ <valueHelp>
+ <format>file</format>
+ <description>File in /config/auth directory</description>
+ </valueHelp>
+ <constraint>
+ <validator name="file-exists" argument="--directory /config/auth"/>
+ </constraint>
</properties>
</leafNode>
</children>