diff options
Diffstat (limited to 'src/sign.erl')
-rw-r--r-- | src/sign.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sign.erl b/src/sign.erl index 5949ad1..ced218a 100644 --- a/src/sign.erl +++ b/src/sign.erl @@ -16,6 +16,8 @@ -export([init/1, handle_call/3, terminate/2, handle_cast/2, handle_info/2, code_change/3]). +-include("timeouts.hrl"). + -define(CERTIFICATE_TIMESTAMP, 0). -define(TREE_HASH, 1). @@ -241,7 +243,7 @@ handle_call({sign, Data}, _From, State) -> [Port, ExitStatus]), {stop, portexit, State} after - 10000 -> + ?SIGN_HSM_PORT_TIMEOUT -> lager:error("HSM timeout"), {stop, timeout, State} end |