Skip to content

Commit edff139

Browse files
committed
Use record 'Attribute' instead of 'AttributePKCS-10' removed in OTP 28 (#4)
Record 'AttributePKCS-10' was removed in OTP 28. Record 'Attribute' is available in public_key.hrl since at least OTP 20.0, and is available also in recent OTP 28.0.2.
1 parent 90d2afa commit edff139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/p1_acme.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ generate_csr([_|_] = Domains, PrivKey) ->
769769
critical = false,
770770
extnValue = DerSAN}],
771771
DerExtnReq = public_key:der_encode('ExtensionRequest', Extns),
772-
Attribute = #'AttributePKCS-10'{type = ?'pkcs-9-at-extensionRequest',
772+
Attribute = #'Attribute'{type = ?'pkcs-9-at-extensionRequest',
773773
values = [{asn1_OPENTYPE, DerExtnReq}]},
774774
SubjPKInfo = #'CertificationRequestInfo_subjectPKInfo'{
775775
subjectPublicKey = subject_pubkey(PubKey),

0 commit comments

Comments
 (0)