summaryrefslogtreecommitdiff
path: root/src/v1.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-03-20 17:24:48 +0100
committerLinus Nordberg <linus@nordberg.se>2015-03-20 17:24:48 +0100
commit7e1b8b876fbfe63243409daba60ffac3d78cdd44 (patch)
tree7abc6c9537c34103a9a2dea65d50df348f378a4a /src/v1.erl
parentf98f39ea2e9ae9d701f79de1b45e21fa0e5fd995 (diff)
s/valid_chain_p/normalise_chain/g
Diffstat (limited to 'src/v1.erl')
-rw-r--r--src/v1.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v1.erl b/src/v1.erl
index 6d13541..e672182 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -120,8 +120,8 @@ add_chain(Input, Type) ->
html("add-chain: invalid base64-encoded chain: ",
[ChainBase64]);
[LeafCert | CertChain] ->
- case x509:valid_chain_p(catlfish:known_roots(),
- [LeafCert|CertChain]) of
+ case x509:normalise_chain(catlfish:known_roots(),
+ [LeafCert|CertChain]) of
{ok, [Leaf | Chain]} ->
lager:info("adding ~p cert ~p",
[Type, x509:cert_string(LeafCert)]),