]> git.proxmox.com Git - pmg-api.git/commit
add pmg_verify_tls_policy_strict and use it in API
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 27 Sep 2018 16:38:13 +0000 (18:38 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Sep 2018 04:10:35 +0000 (06:10 +0200)
commit550f4c47747823efa54d39f71b498e53266209e2
tree3fb510b6926f25ceb33d0f0426fbfb780a1e3158
parentdfbfa1551022ed97177c652293995b47b7eb75bf
add pmg_verify_tls_policy_strict and use it in API

This patch splits the parsing of tls_policies in 2 parts:
While reading we just require a line to start with one of the valid tls_policies,
while writing we only accept one of the policies w/o any attributes.
This should help users, who already have a manually crafted file in place, to
use API-calls for adding/modifying entries.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/API2/DestinationTLSPolicy.pm
PMG/Config.pm