diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plop.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plop.erl b/src/plop.erl index 6ffc856..a55e4ca 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -25,13 +25,16 @@ -include_lib("eunit/include/eunit.hrl"). -define(PLOPVERSION, 1). +-define(TESTKEYFILE, "src/test/rsakey.pem"). +-define(TESTKEYPASSPHRASE, "sikrit"). + -record(state, {pubkey :: public_key:rsa_public_key(), privkey :: public_key:rsa_private_key(), logid :: binary(), hashtree :: ht:head()}). start_link() -> - start_link("src/test/rsakey.pem", "sikrit"). % FIXME: Remove. + start_link(?TESTKEYFILE, ?TESTKEYPASSPHRASE). % FIXME: Remove. start_link(Keyfile, Passphrase) -> gen_server:start_link({local, ?MODULE}, ?MODULE, [Keyfile, Passphrase], []). @@ -284,7 +287,7 @@ serialise_test_() -> entry_type = x509, signed_entry = <<"foo">>})))]. add_test_() -> - {ok, S} = init(["test/rsakey.pem", "sikrit"]), + {ok, S} = init([?TESTKEYFILE, ?TESTKEYPASSPHRASE]), [?_assertEqual( <<"fixme">>, do_add(#timestamped_entry{ |