From: Evgeniy Khramtsov Date: Tue, 7 Mar 2017 19:21:44 +0000 (+0300) Subject: Fix typo and spec X-Git-Tag: 17.03~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdc278399dbfcfa9c4e9e5b4994033a1ae2e58ba;p=ejabberd Fix typo and spec --- diff --git a/src/xmpp_stream_pkix.erl b/src/xmpp_stream_pkix.erl index c1dd01998..8361999f4 100644 --- a/src/xmpp_stream_pkix.erl +++ b/src/xmpp_stream_pkix.erl @@ -85,7 +85,7 @@ format_error(idna_failed) -> format_error(hostname_mismatch) -> {'not-authorized', <<"Certificate host name mismatch">>}; format_error(jid_mismatch) -> - {'not-authorized', <<"Certifcate JID mismatch">>}; + {'not-authorized', <<"Certificate JID mismatch">>}; format_error(get_cert_failed) -> {'bad-protocol', <<"Failed to get peer certificate">>}; format_error(invalid_authzid) -> @@ -104,7 +104,7 @@ get_cert_domains(Cert) -> %%%=================================================================== %%% Internal functions %%%=================================================================== --spec verify_cert(module(), fast_tls:tls_socket()) -> {ok, cert()} | {error, atom()}. +-spec verify_cert(module(), ejabberd_socket:socket()) -> {ok, cert()} | {error, atom()}. verify_cert(SockMod, Socket) -> case SockMod:get_peer_certificate(Socket, otp) of {ok, Cert} ->