From 7e1b8b876fbfe63243409daba60ffac3d78cdd44 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 20 Mar 2015 17:24:48 +0100 Subject: s/valid_chain_p/normalise_chain/g --- src/v1.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/v1.erl') 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)]), -- cgit v1.1