aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_crl_cache_api.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-09-10 11:19:42 +0200
committerIngela Anderton Andin <[email protected]>2019-02-05 14:43:48 +0100
commite042afe54727ae490d47eae47c6d9a210f04dd47 (patch)
tree7999d1adfd7226d276903737cce6104a7230f4d2 /lib/ssl/src/ssl_crl_cache_api.erl
parent949c725abcc649e508d971cbc82f5278e050db2c (diff)
downloadotp-e042afe54727ae490d47eae47c6d9a210f04dd47.tar.gz
otp-e042afe54727ae490d47eae47c6d9a210f04dd47.tar.bz2
otp-e042afe54727ae490d47eae47c6d9a210f04dd47.zip
ssl: Use specs to generate type documentation
Diffstat (limited to 'lib/ssl/src/ssl_crl_cache_api.erl')
-rw-r--r--lib/ssl/src/ssl_crl_cache_api.erl15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/ssl/src/ssl_crl_cache_api.erl b/lib/ssl/src/ssl_crl_cache_api.erl
index d5380583e7..8a750b3929 100644
--- a/lib/ssl/src/ssl_crl_cache_api.erl
+++ b/lib/ssl/src/ssl_crl_cache_api.erl
@@ -21,12 +21,15 @@
%%
-module(ssl_crl_cache_api).
-
-include_lib("public_key/include/public_key.hrl").
--type db_handle() :: term().
--type issuer_name() :: {rdnSequence, [#'AttributeTypeAndValue'{}]}.
+-export_type([dist_point/0, crl_cache_ref/0]).
+
+-type crl_cache_ref() :: any().
+-type issuer_name() :: {rdnSequence,[#'AttributeTypeAndValue'{}]}.
+-type dist_point() :: #'DistributionPoint'{}.
--callback lookup(#'DistributionPoint'{}, issuer_name(), db_handle()) -> not_available | [public_key:der_encoded()].
--callback select(issuer_name(), db_handle()) -> [public_key:der_encoded()].
--callback fresh_crl(#'DistributionPoint'{}, public_key:der_encoded()) -> public_key:der_encoded().
+
+-callback lookup(dist_point(), issuer_name(), crl_cache_ref()) -> not_available | [public_key:der_encoded()].
+-callback select(issuer_name(), crl_cache_ref()) -> [public_key:der_encoded()].
+-callback fresh_crl(dist_point(), public_key:der_encoded()) -> public_key:der_encoded().