Skip to content

Commit 7243175

Browse files
committed
[fix] Make parameter tls_cipher an array #349
Fixes #349 Signed-off-by: Oliver Kraitschy <[email protected]>
1 parent 50218b5 commit 7243175

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/source/backends/openvpn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ key name type default allowed values
155155
character
156156
``reneg_sec`` integer ``3600`` any positive integer
157157
``tls_timeout`` integer ``2`` any positive integer
158-
``tls_cipher`` string any string
158+
``tls_cipher`` list list of strings
159159
``remote_cert_tls`` string ``client``, ``server`` or
160160
empty string
161161
``float`` boolean ``False``

netjsonconfig/backends/openvpn/schema.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,13 @@
495495
"tls_cipher": {
496496
"title": "TLS cipher",
497497
"description": "A list of allowable TLS ciphers delimited by a colon (':')",
498-
"type": "string",
498+
"type": "array",
499499
"propertyOrder": 41,
500+
"additionalItems": True,
501+
"items": {
502+
"title": "cipher",
503+
"type": "string",
504+
},
500505
},
501506
"remote_cert_tls": {
502507
"title": "Remote certificate TLS",

0 commit comments

Comments
 (0)