From 3aa08b00a1151249c6172f0739daac6be5ef857f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 28 Jan 2024 16:37:00 +0700 Subject: all: make the path to private key static Instead of prompting user, make the private key static, located at "$XDG_CONFIG_DIR/gotp/gotp.key". Implements: https://todo.sr.ht/~shulhan/gotp/1 --- testdata/cli_SetPrivateKey_test.txt | 3 --- testdata/config_marshaler_test.txt | 6 ------ testdata/with_private_key.conf | 3 --- 3 files changed, 12 deletions(-) (limited to 'testdata') diff --git a/testdata/cli_SetPrivateKey_test.txt b/testdata/cli_SetPrivateKey_test.txt index b767b01..8da9654 100644 --- a/testdata/cli_SetPrivateKey_test.txt +++ b/testdata/cli_SetPrivateKey_test.txt @@ -11,9 +11,6 @@ test3 = SHA1:c:6:30: test4 = SHA1:d:6:30: test5 = SHA1:e:6:30: -[gotp] -private_key = - <<< issuers test1 = SHA1:a:6:30: test2 = SHA1:b:6:30: diff --git a/testdata/config_marshaler_test.txt b/testdata/config_marshaler_test.txt index b354b28..fb8ada9 100644 --- a/testdata/config_marshaler_test.txt +++ b/testdata/config_marshaler_test.txt @@ -5,13 +5,7 @@ Test UnmarshalText and MarshalText on config. test1 = SHA1:a:6:30: test2 = SHA1:b:6:30: -[gotp] -private_key = ~/myprivatekey.pem - <<< output.ini [gotp "issuer"] test1 = SHA1:a:6:30: test2 = SHA1:b:6:30: - -[gotp] -private_key = ~/myprivatekey.pem diff --git a/testdata/with_private_key.conf b/testdata/with_private_key.conf index 51988c3..706112c 100644 --- a/testdata/with_private_key.conf +++ b/testdata/with_private_key.conf @@ -1,6 +1,3 @@ -[gotp] -private_key = testdata/keys/rsa-openssl.pem - [gotp "issuer"] test = ABCD email-domain = XYZ -- cgit v1.3