Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
1615-ssl-Add-lookup-3-to-ssl_crl_cache_api-call...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1615-ssl-Add-lookup-3-to-ssl_crl_cache_api-callbacks.patch of Package erlang
From b0a8d523c7f6db84f8bcbb8440edfb22edfdb283 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 27 Sep 2023 21:01:25 +0200 Subject: [PATCH 5/5] ssl: Add lookup/3 to ssl_crl_cache_api callbacks --- lib/ssl/src/ssl_crl_cache_api.erl | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/ssl/src/ssl_crl_cache_api.erl b/lib/ssl/src/ssl_crl_cache_api.erl index a633e1248b..b984b2a7fb 100644 --- a/lib/ssl/src/ssl_crl_cache_api.erl +++ b/lib/ssl/src/ssl_crl_cache_api.erl @@ -21,7 +21,7 @@ %% -module(ssl_crl_cache_api). --include_lib("public_key/include/public_key.hrl"). +-include_lib("public_key/include/public_key.hrl"). -export_type([dist_point/0, crl_cache_ref/0, logger_info/0]). @@ -30,9 +30,17 @@ -type dist_point() :: #'DistributionPoint'{}. -type logger_info() :: {logger:level(), Report::#{description => string(), reason => term()}, logger:metadata()}. --callback lookup(dist_point(), issuer_name(), crl_cache_ref()) -> not_available | [public_key:der_encoded()] | - {{logger, logger_info()}, [public_key:der_encoded()]}. --callback select(issuer_name() | list(), crl_cache_ref()) -> [public_key:der_encoded()] | - {logger, logger_info(), [public_key:der_encoded()]}. --callback fresh_crl(dist_point(), public_key:der_encoded()) -> public_key:der_encoded() | - {logger, logger_info(), public_key:der_encoded()}. +-callback lookup(dist_point(), crl_cache_ref()) -> + not_available | [public_key:der_encoded()] | + {{logger, logger_info()}, [public_key:der_encoded()]}. +-callback lookup(dist_point(), issuer_name(), crl_cache_ref()) -> + not_available | [public_key:der_encoded()] | + {{logger, logger_info()}, [public_key:der_encoded()]}. +-callback select(issuer_name() | list(), crl_cache_ref()) -> + [public_key:der_encoded()] | + {logger, logger_info(), [public_key:der_encoded()]}. +-callback fresh_crl(dist_point(), public_key:der_encoded()) -> + public_key:der_encoded() | + {logger, logger_info(), public_key:der_encoded()}. + +-optional_callbacks([lookup/2]). -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor