forked from cisagov/icsnpp-opcua-binary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opcua_binary-secure_channel_debug.pac
52 lines (41 loc) · 1.37 KB
/
opcua_binary-secure_channel_debug.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
## opcua_binary-secure_channel_analyzer.pac
##
## OPCUA Binary Protocol Analyzer
##
## Debug code for processing the secure channel service.
##
## Author: Kent Kvarfordt
## Contact: [email protected]
##
## Copyright (c) 2022 Battelle Energy Alliance, LLC. All rights reserved.
%header{
void printOpnSecChnlReq(Opn_Sec_Chnl_Req *msg);
void printOpnSecChnlRes(Opn_Sec_Chnl_Res *msg);
void printCloSecChnlReq(Clo_Sec_Chnl_Req *msg);
%}
%code{
void printOpnSecChnlReq(Opn_Sec_Chnl_Req *msg) {
printMsgHeader( msg->service()->msg_body()->header());
printMsgType( msg->service()->msg_body()->header());
printService(msg->service());
printReqHdr(msg->req_hdr());
// Details need implemented
return;
}
void printOpnSecChnlRes(Opn_Sec_Chnl_Res *msg) {
printMsgHeader( msg->service()->msg_body()->header());
printMsgType( msg->service()->msg_body()->header());
printService(msg->service());
printResHdr(msg->res_hdr());
// Details need implemented
return;
}
void printCloSecChnlReq(Clo_Sec_Chnl_Req *msg) {
printMsgHeader( msg->service()->msg_body()->header());
printMsgType( msg->service()->msg_body()->header());
printService(msg->service());
printReqHdr(msg->req_hdr());
// Details need implemented
return;
}
%}