Skip to content

Commit 871f232

Browse files
committed
Introduce ranch_transport:peercert/1 callback
1 parent 0906ab7 commit 871f232

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ranch_transport.erl

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
-> {ok, {inet:ip_address(), inet:port_number()} | {local, binary()}} | {error, atom()}.
6565
-callback sockname(socket())
6666
-> {ok, {inet:ip_address(), inet:port_number()} | {local, binary()}} | {error, atom()}.
67+
-callback peercert(socket()) -> {ok, public_key:der_encoded()} | {error, atom()}.
6768
-callback shutdown(socket(), read | write | read_write)
6869
-> ok | {error, atom()}.
6970
-callback close(socket()) -> ok.

0 commit comments

Comments
 (0)