Path: blob/master/lib/rex/proto/crypto_asn1.rb
19851 views
# -*- coding: binary -*-1require 'rasn1'23module Rex::Proto::CryptoAsn14# see: [[MS-WCCE]: 2.2.2.7.10 szENROLLMENT_NAME_VALUE_PAIR](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-wcce/92f07a54-2889-45e3-afd0-94b60daa80ec)5class EnrollmentNameValuePair < RASN1::Model6sequence :enrollment_name_value_pair, content: [7bmp_string(:name),8bmp_string(:value)9]10end1112# see: [[MS-WCCE]: 2.2.2.7.7.4 szOID_NTDS_CA_SECURITY_EXT](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-wcce/e563cff8-1af6-4e6f-a655-7571ca482e71)13class NtdsCaSecurityExt < RASN1::Model14class OtherName < RASN1::Model15sequence :OtherName, implicit: 0, content: [16objectid(:type_id),17octet_string(:value, explicit: 0, constructed: true)18]19end2021sequence :NtdsCaSecurityExt,22constructed: true,23content: [24wrapper(model(:OtherName, OtherName))25]26end27end282930