Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
1522-public_key-use-alg-params-if-not-RSA-with-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1522-public_key-use-alg-params-if-not-RSA-with-NULL-param.patch of Package erlang
From d26ff21da99c2abeef5fbdc62ae769348f0efcd5 Mon Sep 17 00:00:00 2001 From: Jakub Witczak <kuba@erlang.org> Date: Thu, 18 Apr 2024 14:07:28 +0200 Subject: [PATCH 2/2] public_key: use alg params if not RSA with 'NULL' params --- lib/public_key/src/pubkey_ocsp.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/public_key/src/pubkey_ocsp.erl b/lib/public_key/src/pubkey_ocsp.erl index e5d5145094..c624d5d15f 100644 --- a/lib/public_key/src/pubkey_ocsp.erl +++ b/lib/public_key/src/pubkey_ocsp.erl @@ -253,11 +253,11 @@ get_public_key_rec(#'OTPCertificate'{tbsCertificate = TbsCert}) -> PKInfo = TbsCert#'OTPTBSCertificate'.subjectPublicKeyInfo, Params = PKInfo#'OTPSubjectPublicKeyInfo'.algorithm#'PublicKeyAlgorithm'.parameters, SubjectPublicKey = PKInfo#'OTPSubjectPublicKeyInfo'.subjectPublicKey, - case Params of - {namedCurve, _} -> - {SubjectPublicKey, Params}; - _ -> - SubjectPublicKey + case {SubjectPublicKey, Params} of + {#'RSAPublicKey'{}, 'NULL'} -> + SubjectPublicKey; + {_, _} -> + {SubjectPublicKey, Params} end. get_subject_name(#'OTPCertificate'{tbsCertificate = TbsCert}) -> -- 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