From 871f232710900d0c684f315841b092ad4dafa119 Mon Sep 17 00:00:00 2001 From: Alexander Petrovsky Date: Fri, 7 Jan 2022 17:56:50 +0300 Subject: [PATCH] Introduce ranch_transport:peercert/1 callback --- src/ranch_transport.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ranch_transport.erl b/src/ranch_transport.erl index 52eeba3fd6..299aa9f4d3 100644 --- a/src/ranch_transport.erl +++ b/src/ranch_transport.erl @@ -64,6 +64,7 @@ -> {ok, {inet:ip_address(), inet:port_number()} | {local, binary()}} | {error, atom()}. -callback sockname(socket()) -> {ok, {inet:ip_address(), inet:port_number()} | {local, binary()}} | {error, atom()}. +-callback peercert(socket()) -> {ok, public_key:der_encoded()} | {error, atom()}. -callback shutdown(socket(), read | write | read_write) -> ok | {error, atom()}. -callback close(socket()) -> ok.