Skip to content

Commit

Permalink
Improve TLS-Crypt-V2 GROUP-Key Inline-file names
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Nov 23, 2021
1 parent 569c119 commit 211db65
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions easytls
Original file line number Diff line number Diff line change
Expand Up @@ -4018,12 +4018,13 @@ inline_tls_crypt_v2_group_server ()
die "Required option(s): <server_common_name> <server_group_key>"

name="${1}"
file_name_stub="${1}-gs"
shift

group_key="${1}"
shift

file_name_stub="${name}-${group_key}"

cmd_opts=""
while [ -n "${1}" ]; do
case "${1}" in
Expand Down Expand Up @@ -4175,8 +4176,9 @@ inline_tls_crypt_v2_group_server ()

# Append TLS-Crypt-V2 key
{
"${EASYTLS_PRINTF}" "%s\n" \
"# metadata Easy-TLS-version ${EASYTLS_VERSION} - TLS-Crypt-v2 key"
"${EASYTLS_PRINTF}" '%s\n%s\n' \
"# metadata Easy-TLS-version ${EASYTLS_VERSION}" \
"# metadata TLS-Crypt-v2 GROUP Server Key: ${group_key}"

if [ $no_metadata ]
then
Expand Down Expand Up @@ -4256,12 +4258,13 @@ inline_tls_crypt_v2_group_client ()
die "Required option(s): <client_common_name> <client_group_key>"

name="${1}"
file_name_stub="${1}-gc"
shift

group_key="${1}"
shift

file_name_stub="${name}-${group_key}"

cmd_opts=""
while [ -n "${1}" ]; do
case "${1}" in
Expand Down Expand Up @@ -4413,8 +4416,9 @@ inline_tls_crypt_v2_group_client ()

# Append TLS-Crypt-V2 key
{
"${EASYTLS_PRINTF}" "%s\n" \
"# metadata Easy-TLS-version ${EASYTLS_VERSION} - TLS-Crypt-v2 key"
"${EASYTLS_PRINTF}" '%s\n%s\n' \
"# metadata Easy-TLS-version ${EASYTLS_VERSION}" \
"# metadata TLS-Crypt-v2 GROUP Client Key: ${group_key}"

if [ $no_metadata ]
then
Expand Down

1 comment on commit 211db65

@TinCanTech
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.