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 authored and sergio-correia committed Nov 7, 2024
1 parent 4fc8130 commit 4ba3f79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
13 changes: 0 additions & 13 deletions src/pins/tang/tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ kgen = find_program(
join_paths('/', 'usr', get_option('libexecdir'), 'tangd-keygen'),
required: false
)
updt = find_program(
join_paths(libexecdir, 'tangd-update'),
join_paths(get_option('prefix'), get_option('libdir'), 'tangd-update'),
join_paths(get_option('prefix'), get_option('libexecdir'), 'tangd-update'),
join_paths('/', 'usr', get_option('libdir'), 'tangd-update'),
join_paths('/', 'usr', get_option('libexecdir'), 'tangd-update'),
required: false
)
tang = find_program(
join_paths(libexecdir, 'tangd'),
join_paths(get_option('prefix'), get_option('libdir'), 'tangd'),
Expand All @@ -28,7 +20,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 +34,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 4ba3f79

Please sign in to comment.