forked from cisagov/icsnpp-opcua-binary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcua_binary-secure_channel.pac
62 lines (58 loc) · 1.82 KB
/
opcua_binary-secure_channel.pac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## opcua_binary-secure_channel_analyzer.pac
##
## OPCUA Binary Protocol Analyzer
##
## Binpac code for processing the secure channel service.
##
## Author: Kent Kvarfordt
## Contact: [email protected]
##
## Copyright (c) 2022 Battelle Energy Alliance, LLC. All rights reserved.
#
# UA Specification Part 6 - Mappings 1.04.pdf - OpenSecureChannel Service
#
# 6.7.4 Establishing a SecureChannel - Table 47
#
type Opn_Sec_Chnl_Req(service: Service) = record {
req_hdr : Request_Header;
client_proto_ver : uint32;
req_type : OpcUA_SecurityTokenReqType;
sec_mode : OpcUA_MessageSecurityMode;
client_nonce : OpcUA_ByteString;
req_lifetime : uint32;
} &let {
deliver: bool = $context.flow.deliver_Svc_OpnSecChnlReq(this);
} &byteorder=littleendian;
#
# UA Specification Part 6 - Mappings 1.04.pdf - OpenSecureChannel Service
#
# 6.7.4 Establishing a SecureChannel - Table 47
#
type Opn_Sec_Chnl_Res(service: Service) = record {
res_hdr : Response_Header;
server_proto_ver : uint32;
security_token : OpcUA_ChannelSecurityToken;
server_nonce : OpcUA_ByteString;
} &let {
deliver: bool = $context.flow.deliver_Svc_OpnSecChnlRes(this);
} &byteorder=littleendian;
#
# UA Specification Part 4 - Services 1.04.pdf - CloseSecureChannel
#
# 5.5.3.2 Parameters - Table 13
#
type Clo_Sec_Chnl_Req(service: Service) = record {
req_hdr : Request_Header;
} &let {
deliver: bool = $context.flow.deliver_Svc_CloSecChnlReq(this);
} &byteorder=littleendian;
#
# UA Specification Part 4 - Services 1.04.pdf - CloseSecureChannel
#
# 5.5.3.2 Parameters - Table 13
#
type Clo_Sec_Chnl_Res(service: Service) = record {
res_hdr : Response_Header;
} &let {
deliver: bool = $context.flow.deliver_Svc_CloSecChnlRes(this);
} &byteorder=littleendian;