[erlang-questions] ssl:peercert/1 has gone?

Simon MacMullen simon@REDACTED
Mon Oct 10 13:24:01 CEST 2011


This merge:

https://github.com/erlang/otp/commit/00202339445daae6ed931f28f932089d5c3dd455

Says "Remove old ssl implementation and deprecated function ssl:peercert/1"

But it was only ssl:peercert/2 that was marked as deprecated. I thought. 
Indeed otp_internal.erl says:

 > %% Added in R14A.
 > obsolete_1(ssl, peercert, 2) ->
 >     {deprecated,"deprecated (will be removed in R15A); use
 > ssl:peercert/1 and public_key:pkix_decode_cert/2 instead"};

So was ssl:peercert/1 meant to be removed? If so, what should I use to 
get the peer certificate?

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware



More information about the erlang-questions mailing list