CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/proto/crypto_asn1.rb
Views: 11655
1
# -*- coding: binary -*-
2
require 'rasn1'
3
4
module Rex::Proto::CryptoAsn1
5
# 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)
6
class EnrollmentNameValuePair < RASN1::Model
7
sequence :enrollment_name_value_pair, content: [
8
bmp_string(:name),
9
bmp_string(:value)
10
]
11
end
12
13
# 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)
14
class NtdsCaSecurityExt < RASN1::Model
15
class OtherName < RASN1::Model
16
sequence :OtherName, implicit: 0, content: [
17
objectid(:type_id),
18
octet_string(:value, explicit: 0, constructed: true)
19
]
20
end
21
22
sequence :NtdsCaSecurityExt,
23
constructed: true,
24
content: [
25
wrapper(model(:OtherName, OtherName))
26
]
27
end
28
end
29
30