kee

Offline IOU signer with QR as transport
git clone git://holbrook.no/kee-gtk4.git
Info | Log | Files | Refs | README | LICENSE

commit 48d8def6a8adad039b1a5b347cad0fb6f0cf2ee7
parent bbbd0e2f08ed64196184cce95f6e7cec98c0382f
Author: lash <dev@holbrook.no>
Date:   Sun, 23 Feb 2025 08:33:20 +0000

Link menu in regular run make, remove bogus kee.key lnk

Diffstat:
MMakefile | 1+
Mtestdata_asn1.py | 21++++++++++-----------
2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Makefile b/Makefile @@ -19,6 +19,7 @@ clean: run: gtk all + cd testdata && ln -svf ../src/gtk/beamenu.dat . G_DEBUG=3 G_MESSAGES_DEBUG=3 ./src/gtk/a.out debug: gtk testdata all diff --git a/testdata_asn1.py b/testdata_asn1.py @@ -629,17 +629,16 @@ if __name__ == '__main__': keys = ['alice'] alice_key = os.path.join(crypto_dir, 'alice.key.bin') - try: - os.unlink('kee.key') - except FileNotFoundError: - pass + #try: + # os.unlink('kee.key') + #except FileNotFoundError: + # pass alice_key_sym = 'kee.key' #dfd = os.open(crypto_dir, os.O_DIRECTORY | os.O_RDONLY) #os.symlink(alice_key, alice_key_sym, dir_fd=dfd) #os.close(dfd) od = os.getcwd() - os.symlink(alice_key, os.path.join(od, alice_key_sym)) - print(">>> key sym {} {} {}".format(alice_key, os.path.join(od, alice_key_sym), od)) + #os.symlink(alice_key, os.path.join(od, alice_key_sym)) os.chdir(crypto_dir) #alice_key_sym = os.path.join(crypto_dir, alice_key_sym) os.symlink(os.path.basename(alice_key), alice_key_sym) @@ -699,12 +698,12 @@ if __name__ == '__main__': bob_key = os.path.join(crypto_dir, 'bob.key.bin') #bob_key_sym = os.path.join(crypto_dir_r, 'kee.key') bob_key_sym = 'kee.key' - try: - os.unlink('kee.key') - except FileNotFoundError: - pass + #try: + # os.unlink('kee.key') + #except FileNotFoundError: + # pass od = os.getcwd() - os.symlink(bob_key, os.path.join(od, bob_key_sym)) + #os.symlink(bob_key, os.path.join(od, bob_key_sym)) #bob_keygrip_sym = os.path.join(crypto_dir_r, mainbob_keygrip) os.chdir(crypto_dir_r) #os.symlink(os.path.basename(bob_key), bob_keygrip_sym)