[erlang-questions] ssl:peercert/1 has gone?
Ingela Andin
ingela@REDACTED
Mon Oct 10 17:54:26 CEST 2011
Hi!
Hoops! Only peercert/2 should have been removed, my bad. I will put it
back. I think that you usually would access the peer-cert in the
verify_fun during the handshake and
not when the connection is already up, hence I overlooked that it
still might be useful and backwards compatible to keep ssl:peercert/1
.
Regards Ingela Erlang /OTP team - Ericsson AB
2011/10/10 Simon MacMullen <simon@REDACTED>:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list