File 2535-public_key-Correct-spec.patch of Package erlang

From b6e258b0393e7eb3b9f3ef594aee279b485c8734 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin <ingela@erlang.org>
Date: Tue, 20 Apr 2021 08:54:45 +0200
Subject: [PATCH 5/8] public_key: Correct spec

RDNSequence ::= SEQUENCE OF RelativeDistinguishedName

DistinguishedName ::=   RDNSequence

RelativeDistinguishedName  ::=
                    SET SIZE (1 .. MAX) OF AttributeTypeAndValue

RelativeDistinguishedName becomes a list of AttributeTypeAndValue
and RDNSequence becomes a list of RelativeDistinguishedName so
so DistinguishedName will be a list of lists.

Closes #4650
---
 lib/public_key/src/public_key.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl
index b9eeac1b12..b97d4f1f42 100644
--- a/lib/public_key/src/public_key.erl
+++ b/lib/public_key/src/public_key.erl
@@ -128,7 +128,7 @@
 -type chain_type()           :: server_chain | client_chain.
 
 -type cert_id()              :: {SerialNr::integer(), issuer_name()} .
--type issuer_name()          :: {rdnSequence,[#'AttributeTypeAndValue'{}]} .
+-type issuer_name()          :: {rdnSequence,[[#'AttributeTypeAndValue'{}]]} .
 
 
 
-- 
2.26.2

openSUSE Build Service is sponsored by