From 530a916f40e201ee29eded244699eb07c827f436 Mon Sep 17 00:00:00 2001 From: Roger Lipscombe Date: Wed, 12 Jun 2024 11:50:13 +0100 Subject: [PATCH] Fix: 'issuer_fun' takes {Fun, UserState} tuple --- lib/public_key/src/public_key.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl index db2d65baafa7..2105ae89d5ce 100644 --- a/lib/public_key/src/public_key.erl +++ b/lib/public_key/src/public_key.erl @@ -1722,11 +1722,12 @@ Available options: fun(_DP, CRL) -> CRL end ``` -- **\{issuer_fun, fun()\}** - The fun has the following type specification: +- **\{issuer_fun, \{fun(), UserState::term()\}\}** - The fun has the following type + specification: ```erlang fun(#'DistributionPoint'{}, #'CertificateList'{}, - {rdnSequence,[#'AttributeTypeAndValue'{}]}, term()) -> + {rdnSequence,[#'AttributeTypeAndValue'{}]}, UserState::term()) -> {ok, #'OTPCertificate'{}, [der_encoded]} ```