X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/b42d45c07b5355d3359a552f3e627c7498ac644c..7858dfa0ff7fa6d3e94e4a05dbce52dd2415adc6:/keys/tripe-keys.in diff --git a/keys/tripe-keys.in b/keys/tripe-keys.in index 58c36279..531e7492 100644 --- a/keys/tripe-keys.in +++ b/keys/tripe-keys.in @@ -129,12 +129,14 @@ def conf_defaults(): ('sig-file', '${base-dir}${sig-base}'), ('repos-file', '${base-dir}${repos-base}'), ('conf-file', '${base-dir}tripe-keys.conf'), + ('upload-hook', ': run upload hook'), ('kx', 'dh'), ('kx-param', lambda: {'dh': '-LS -b2048 -B256', 'ec': '-Cnist-p256'}[conf['kx']]), ('kx-expire', 'now + 1 year'), ('cipher', 'blowfish-cbc'), ('hash', 'sha256'), + ('master-keygen-flags', '-l'), ('mgf', '${hash}-mgf'), ('mac', lambda: '%s-hmac/%d' % (conf['hash'], @@ -218,7 +220,7 @@ def cmd_newmaster(args): seq = max_master_sequence() + 1 run('''key -kmaster add -a${sig-genalg} !${sig-param} - -e${sig-expire} -l -tmaster-%d tripe-keys-master + -e${sig-expire} !${master-keygen-flags} -tmaster-%d tripe-keys-master sig=${sig} hash=${sig-hash}''' % seq) run('key -kmaster extract -f-secret repos/master.pub') @@ -280,6 +282,7 @@ def cmd_upload(args): finally: OS.chdir(cwd) rmtree('tmp') + run('sh -c ${upload-hook}') def cmd_update(args): cwd = OS.getcwd()