Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
7902-public_key-add-typespecs-to-pubkey_cert.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7902-public_key-add-typespecs-to-pubkey_cert.patch of Package erlang
From 7805779199a69199296653a48c014e2e79d8f3c2 Mon Sep 17 00:00:00 2001 From: Kiko Fernandez-Reyes <kiko@erlang.org> Date: Mon, 19 Dec 2022 10:26:27 +0100 Subject: [PATCH 2/3] public_key: add typespecs to pubkey_cert --- lib/public_key/src/pubkey_cert.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/public_key/src/pubkey_cert.erl b/lib/public_key/src/pubkey_cert.erl index 7bfcf1e24d..9d67901e9b 100644 --- a/lib/public_key/src/pubkey_cert.erl +++ b/lib/public_key/src/pubkey_cert.erl @@ -154,7 +154,7 @@ validate_time(OtpCert, UserState, VerifyFun) -> verify_fun(OtpCert, {bad_cert, cert_expired}, UserState, VerifyFun) end. %%-------------------------------------------------------------------- --spec validate_issuer(#'OTPCertificate'{}, term(), term(), fun()) -> term(). +-spec validate_issuer(#'OTPCertificate'{}, term(), term(), fun()) -> term() | no_return(). %% %% Description: Check that the certificate issuer name is the working_issuer_name %% in path_validation_state. @@ -169,7 +169,7 @@ validate_issuer(OtpCert, Issuer, UserState, VerifyFun) -> end. %%-------------------------------------------------------------------- -spec validate_signature(#'OTPCertificate'{}, DER::binary(), - term(),term(), term(), fun()) -> term(). + term(),term(), term(), fun()) -> term() | no_return(). %% %% Description: Check that the signature on the certificate can be verified using @@ -187,7 +187,7 @@ validate_signature(OtpCert, DerCert, Key, KeyParams, end. %%-------------------------------------------------------------------- -spec validate_names(#'OTPCertificate'{}, no_constraints | list(), list(), - term(), term(), fun())-> term(). + term(), term(), fun())-> term() | no_return(). %% %% Description: Validate Subject Alternative Name. %%-------------------------------------------------------------------- @@ -333,7 +333,7 @@ is_fixed_dh_cert(#'OTPCertificate'{tbsCertificate = %%-------------------------------------------------------------------- -spec verify_fun(#'OTPCertificate'{}, {bad_cert, atom()} | {extension, #'Extension'{}}| - valid | valid_peer, term(), fun()) -> term(). + valid | valid_peer, term(), fun()) -> term() | no_return(). %% %% Description: Gives the user application the opportunity handle path %% validation errors and unknown extensions and optional do other -- 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