chore(schema): restore space

This commit is contained in:
zhongwencool 2021-09-22 16:41:00 +08:00
parent 96fad3d225
commit 085d8e8efa
2 changed files with 23 additions and 10 deletions

View File

@ -939,9 +939,9 @@ ssl(Defaults) ->
sc(boolean(), sc(boolean(),
#{ default => Df("secure_renegotiate", true) #{ default => Df("secure_renegotiate", true)
, desc => """ , desc => """
SSL parameter renegotiation is a feature that allows a client and a server SSL parameter renegotiation is a feature that allows a client and a server
to renegotiate the parameters of the SSL connection on the fly. to renegotiate the parameters of the SSL connection on the fly.
RFC 5746 defines a more secure way of doing this. By enabling secure renegotiation, RFC 5746 defines a more secure way of doing this. By enabling secure renegotiation,
you drop support for the insecure renegotiation, prone to MitM attacks. you drop support for the insecure renegotiation, prone to MitM attacks.
""" """
}) })
@ -950,13 +950,13 @@ you drop support for the insecure renegotiation, prone to MitM attacks.
sc(boolean(), sc(boolean(),
#{ default => Df("client_renegotiation", true) #{ default => Df("client_renegotiation", true)
, desc => """ , desc => """
In protocols that support client-initiated renegotiation, In protocols that support client-initiated renegotiation,
the cost of resources of such an operation is higher for the server than the client. the cost of resources of such an operation is higher for the server than the client.
This can act as a vector for denial of service attacks. This can act as a vector for denial of service attacks.
The SSL application already takes measures to counter-act such attempts, The SSL application already takes measures to counter-act such attempts,
but client-initiated renegotiation can be strictly disabled by setting this option to false. but client-initiated renegotiation can be strictly disabled by setting this option to false.
The default value is true. Note that disabling renegotiation can result in The default value is true. Note that disabling renegotiation can result in
long-lived connections becoming unusable due to limits on long-lived connections becoming unusable due to limits on
the number of messages the underlying cipher suite can encipher. the number of messages the underlying cipher suite can encipher.
""" """
}) })

View File

@ -0,0 +1,13 @@
%%%-------------------------------------------------------------------
%%% @author zhongwen
%%% @copyright (C) 2021, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 22. 9 2021 13:38
%%%-------------------------------------------------------------------
-module(emqx_swagger_util).
-author("zhongwen").
%% API
-export([]).