chore(schema): check tls_version if psk_cipher configured
This commit is contained in:
parent
024c7c59b7
commit
759b1dacdf
|
@ -2100,7 +2100,14 @@ end}.
|
||||||
{TLSCiphers, undefined} ->
|
{TLSCiphers, undefined} ->
|
||||||
SplitFun(TLSCiphers);
|
SplitFun(TLSCiphers);
|
||||||
{undefined, PSKCiphers} ->
|
{undefined, PSKCiphers} ->
|
||||||
MapPSKCiphers(SplitFun(PSKCiphers));
|
case Versions == undefined orelse lists:member('tlsv1.3', Versions) of
|
||||||
|
true ->
|
||||||
|
cuttlefish:invalid(
|
||||||
|
Prefix++".tls_versions cannot contain tlsv1.3 "
|
||||||
|
"if "++Prefix++".psk_ciphers is configured");
|
||||||
|
_ ->
|
||||||
|
MapPSKCiphers(SplitFun(PSKCiphers))
|
||||||
|
end;
|
||||||
{_TLSCiphers, _PSKCiphers} ->
|
{_TLSCiphers, _PSKCiphers} ->
|
||||||
cuttlefish:invalid(Prefix++".ciphers and "++Prefix++".psk_ciphers cannot be configured at the same time")
|
cuttlefish:invalid(Prefix++".ciphers and "++Prefix++".psk_ciphers cannot be configured at the same time")
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue