Skip to content

Commit

Permalink
Introduce ranch_transport:peercert/1 callback
Browse files Browse the repository at this point in the history
  • Loading branch information
juise committed Jan 7, 2022
1 parent 0906ab7 commit 871f232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ranch_transport.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 871f232

Please sign in to comment.