diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-08 20:44:20 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-08 20:44:20 +0100 |
commit | 7fd42f21ab2d9b8a7ec8c42d3474bd4a1f0c0b89 (patch) | |
tree | 2c0ff17b7ade49511f631c9796bf668fb9d1378e /src/rabbit_ssl.erl | |
parent | b961b7238d3f0ab78f6a27b4df5ae83b99d9ed42 (diff) | |
download | rabbitmq-server-7fd42f21ab2d9b8a7ec8c42d3474bd4a1f0c0b89.tar.gz |
fix type sigs
Diffstat (limited to 'src/rabbit_ssl.erl')
-rw-r--r-- | src/rabbit_ssl.erl | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/rabbit_ssl.erl b/src/rabbit_ssl.erl index 2c9d5eca..f7da8325 100644 --- a/src/rabbit_ssl.erl +++ b/src/rabbit_ssl.erl @@ -38,22 +38,19 @@ -export([peer_cert_issuer/1, peer_cert_subject/1, peer_cert_validity/1]). --export_type([certificate/0, ssl_socket/0]). - %%-------------------------------------------------------------------------- -ifdef(use_specs). --type(ssl_socket() :: #ssl_socket{}). --type(certificate() :: #'OTPCertificate'{}). --type(a_socket() :: rabbit_networking:socket() | ssl_socket()). +-export_type([certificate/0]). --spec(peer_cert_issuer/1 :: (a_socket()) -> string()). --spec(peer_cert_subject/1 :: (a_socket()) -> string()). --spec(peer_cert_validity/1 :: (a_socket()) -> string()). +-type(certificate() :: #'OTPCertificate'{}). --endif. %% use_specs +-spec(peer_cert_issuer/1 :: (rabbit_net:socket()) -> string()). +-spec(peer_cert_subject/1 :: (rabbit_net:socket()) -> string()). +-spec(peer_cert_validity/1 :: (rabbit_net:socket()) -> string()). +-endif. %%-------------------------------------------------------------------------- %% High-level functions used by reader |