File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
lib/rex/proto/crypto_asn1 Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -177,4 +177,25 @@ class GeneralNames < RASN1::Model
177177 # https://datatracker.ietf.org/doc/html/rfc3280#section-4.2.1.7
178178 class SubjectAltName < GeneralNames
179179 end
180+
181+ # https://datatracker.ietf.org/doc/html/rfc3280#section-4.2.1.5
182+ class PolicyQualifierInfo < RASN1 ::Model
183+ sequence :PolicyQualifierInfo , content : [
184+ objectid ( :policyQualifierId ) ,
185+ any ( :qualifier )
186+ ]
187+ end
188+
189+ # https://datatracker.ietf.org/doc/html/rfc3280#section-4.2.1.5
190+ class PolicyInformation < RASN1 ::Model
191+ sequence :PolicyInformation , content : [
192+ objectid ( :policyIdentifier ) ,
193+ sequence_of ( :policyQualifiers , PolicyQualifierInfo , optional : true )
194+ ]
195+ end
196+
197+ # https://datatracker.ietf.org/doc/html/rfc3280#section-4.2.1.5
198+ class CertificatePolicies < RASN1 ::Model
199+ sequence_of ( :certificatePolicies , PolicyInformation )
200+ end
180201end
You can’t perform that action at this time.
0 commit comments