Skip to content

Commit

Permalink
Groom references to deprecated tangd-update script
Browse files Browse the repository at this point in the history
Resolves: #497

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi committed Nov 7, 2024
1 parent 0cad2e0 commit 51f4ddc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions src/pins/tang/tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ socat = find_program('socat', required: false)
tang_data = configuration_data()
tang_data.set('SOCAT', '')
tang_data.set('TANGD_KEYGEN', '')
tang_data.set('TANGD_UPDATE', '')
tang_data.set('TANGD', '')

if socat.found()
Expand All @@ -43,10 +42,6 @@ if tang.found()
tang_data.set('TANGD', tang.path())
endif

if updt.found()
tang_data.set('TANGD_UPDATE', updt.path())
endif

tang_tests_common = configure_file(
input: 'tang-common-test-functions.in',
output: 'tang-common-test-functions',
Expand Down
7 changes: 1 addition & 6 deletions src/pins/tang/tests/tang-common-test-functions.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

SOCAT="@SOCAT@"
TANGD_KEYGEN="@TANGD_KEYGEN@"
TANGD_UPDATE="@TANGD_UPDATE@"
TANGD="@TANGD@"

tang_error() {
Expand Down Expand Up @@ -70,8 +69,6 @@ tang_remove_rotated_keys() {
pushd "${db}"
find . -name ".*.jwk" -exec rm -f {} \;
popd

[ -n "${TANGD_UPDATE}" ] && "${TANGD_UPDATE}" "${db}" "${basedir}/cache"
return 0
}

Expand Down Expand Up @@ -101,7 +98,6 @@ tang_new_keys() {
fi

"${TANGD_KEYGEN}" "${db}" ${sig_name} ${exc_name}
[ -n "${TANGD_UPDATE}" ] && "${TANGD_UPDATE}" "${db}" "${basedir}/cache"

return 0
}
Expand Down Expand Up @@ -152,8 +148,7 @@ tang_run() {
tang_error "Error creating new keys for tang server"
fi

local KEYS="${basedir}/cache"
[ -z "${TANGD_UPDATE}" ] && KEYS="${basedir}/db"
local KEYS="${basedir}/db"

local pid pidfile portfile
pidfile="${basedir}/tang.pid"
Expand Down

0 comments on commit 51f4ddc

Please sign in to comment.