From bdc278399dbfcfa9c4e9e5b4994033a1ae2e58ba Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 7 Mar 2017 22:21:44 +0300 Subject: [PATCH] Fix typo and spec --- src/xmpp_stream_pkix.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} -> -- 2.40.0