diff options
| author | Shulhan <ms@kilabit.info> | 2024-01-28 16:37:00 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-01-28 17:45:39 +0700 |
| commit | 3aa08b00a1151249c6172f0739daac6be5ef857f (patch) | |
| tree | 5f337e8d19a484ec2e50feea199ab36ae3402fab /testdata | |
| parent | 6aeb5a7c882c30c9a9042f30f2ae16d35d2f47d3 (diff) | |
| download | gotp-3aa08b00a1151249c6172f0739daac6be5ef857f.tar.xz | |
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
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/cli_SetPrivateKey_test.txt | 3 | ||||
| -rw-r--r-- | testdata/config_marshaler_test.txt | 6 | ||||
| -rw-r--r-- | testdata/with_private_key.conf | 3 |
3 files changed, 0 insertions, 12 deletions
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 |
