opcua 0.22 → 0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cert/cert.h +52 -52
- data/cert/cert_key.h +101 -101
- data/example/server_values_callback.pid +1 -0
- data/example/server_values_callback.rb +5 -4
- data/ext/opcua/server/server.c +24 -7
- data/lib/opcua/server.rb +16 -4
- data/opcua.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8dcaa5330c6deae969a19a92bc28135e7f36fe6874751fd9bd326b842146fe0
|
4
|
+
data.tar.gz: 78ee9260ae642df11ce37a8c31efcfec1163d934bcf2a45e136825c1283dfdec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b24d0482f69adce2ca411693536ead0d4c303dda52eb287bcca371dd27b3a621b2c5ca86446b646b811b856b73f7015f95c43bb23a8938ba18fe7027d46a4ceb
|
7
|
+
data.tar.gz: 8c24ada718c0effed4a142bf31d1f0a557793ca833ca38dd242f847336967d81892478033e33c2ccbac2ac53664e2e761adffc62ea9d1a84757456c616f1b00c
|
data/cert/cert.h
CHANGED
@@ -1,70 +1,70 @@
|
|
1
1
|
unsigned char cert_der[] = {
|
2
2
|
0x30, 0x82, 0x03, 0x18, 0x30, 0x82, 0x02, 0x00, 0xa0, 0x03, 0x02, 0x01,
|
3
|
-
0x02, 0x02, 0x14,
|
4
|
-
|
3
|
+
0x02, 0x02, 0x14, 0x76, 0x85, 0x88, 0xf4, 0x2b, 0xce, 0xa3, 0xe1, 0xcf,
|
4
|
+
0x6b, 0xfe, 0xee, 0x14, 0x02, 0xd8, 0x25, 0xa4, 0x09, 0x5b, 0x26, 0x30,
|
5
5
|
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b,
|
6
6
|
0x05, 0x00, 0x30, 0x15, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04,
|
7
7
|
0x03, 0x0c, 0x0a, 0x72, 0x75, 0x62, 0x79, 0x2d, 0x6f, 0x70, 0x63, 0x75,
|
8
|
-
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x31, 0x30, 0x31, 0x32,
|
9
|
-
|
10
|
-
0x31,
|
8
|
+
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x31, 0x30, 0x31, 0x32, 0x35, 0x31,
|
9
|
+
0x31, 0x31, 0x39, 0x30, 0x38, 0x5a, 0x17, 0x0d, 0x32, 0x32, 0x30, 0x31,
|
10
|
+
0x31, 0x35, 0x31, 0x31, 0x31, 0x39, 0x30, 0x38, 0x5a, 0x30, 0x15, 0x31,
|
11
11
|
0x13, 0x30, 0x11, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x0a, 0x72, 0x75,
|
12
12
|
0x62, 0x79, 0x2d, 0x6f, 0x70, 0x63, 0x75, 0x61, 0x30, 0x82, 0x01, 0x22,
|
13
13
|
0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
|
14
14
|
0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a,
|
15
|
-
0x02, 0x82, 0x01, 0x01, 0x00,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
15
|
+
0x02, 0x82, 0x01, 0x01, 0x00, 0xbf, 0x78, 0xb9, 0x74, 0xc7, 0xf0, 0xbc,
|
16
|
+
0xf9, 0xe9, 0x4a, 0x83, 0x52, 0xd2, 0xd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, 0x39, 0xc6, 0x79, 0x56, 0xe4, 0x16, 0x0f, 0x32, 0x6c,
|
31
|
+
0xf5, 0x6f, 0x82, 0x1f, 0x2c, 0x96, 0x74, 0x1f, 0xb4, 0x37, 0xb9, 0x96,
|
32
|
+
0xcf, 0x91, 0x84, 0x80, 0x59, 0xbf, 0x03, 0x49, 0x37, 0x82, 0x0c, 0x23,
|
33
|
+
0x37, 0xf8, 0xe2, 0x31, 0xd3, 0x51, 0x70, 0x96, 0x26, 0xc6, 0x61, 0x51,
|
34
|
+
0xdf, 0x86, 0x8f, 0x2b, 0x14, 0xb9, 0x7a, 0xcb, 0x23, 0xc7, 0x8f, 0xbe,
|
35
|
+
0x3d, 0x14, 0x9b, 0x42, 0x32, 0x29, 0x25, 0x7a, 0x8f, 0x27, 0xc5, 0x12,
|
36
|
+
0x2f, 0xd4, 0x86, 0x13, 0x6e, 0x2a, 0xa8, 0x05, 0x53, 0x02, 0x03, 0x01,
|
37
37
|
0x00, 0x01, 0xa3, 0x60, 0x30, 0x5e, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d,
|
38
|
-
0x0e, 0x04, 0x16, 0x04, 0x14,
|
39
|
-
|
40
|
-
|
38
|
+
0x0e, 0x04, 0x16, 0x04, 0x14, 0x08, 0x0d, 0xc8, 0xe7, 0xe4, 0x35, 0x67,
|
39
|
+
0x1c, 0x33, 0xd6, 0xcc, 0xf2, 0xc1, 0x52, 0x94, 0x78, 0x15, 0xee, 0x47,
|
40
|
+
0x8b, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01, 0x01, 0xff, 0x04,
|
41
41
|
0x05, 0x30, 0x03, 0x01, 0x01, 0xff, 0x30, 0x1c, 0x06, 0x03, 0x55, 0x1d,
|
42
42
|
0x11, 0x04, 0x15, 0x30, 0x13, 0x86, 0x11, 0x72, 0x75, 0x62, 0x79, 0x2d,
|
43
43
|
0x6f, 0x70, 0x63, 0x75, 0x61, 0x3a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
44
44
|
0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff, 0x04, 0x04,
|
45
45
|
0x03, 0x02, 0x05, 0xa0, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
|
46
46
|
0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00,
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
47
|
+
0x93, 0xc7, 0xa1, 0xa5, 0x57, 0x62, 0x64, 0x2e, 0xb9, 0xbe, 0x75, 0x6a,
|
48
|
+
0x16, 0x8f, 0x89, 0x4c, 0x0c, 0xeb, 0x7b, 0x9e, 0xb8, 0x05, 0x1e, 0xaf,
|
49
|
+
0x87, 0xd5, 0x2e, 0xda, 0x25, 0x17, 0xd7, 0x4b, 0x09, 0x6f, 0xcd, 0xad,
|
50
|
+
0xef, 0x24, 0xa8, 0xee, 0xae, 0x96, 0xb0, 0xaa, 0xd9, 0x22, 0xa6, 0x45,
|
51
|
+
0xed, 0x9b, 0x66, 0xf1, 0xc4, 0xc9, 0xd7, 0x54, 0xfa, 0x54, 0x09, 0x65,
|
52
|
+
0x1a, 0x3c, 0xcf, 0x73, 0x06, 0xa9, 0xe8, 0x46, 0x3b, 0x47, 0x97, 0x48,
|
53
|
+
0xad, 0xbe, 0xf7, 0x67, 0x64, 0x03, 0x54, 0xc8, 0x0e, 0xa0, 0x96, 0xaa,
|
54
|
+
0x43, 0xa0, 0x09, 0x71, 0x27, 0x39, 0xec, 0x37, 0x4b, 0x52, 0x78, 0xb7,
|
55
|
+
0xa1, 0x8e, 0x99, 0xbd, 0xe8, 0x78, 0x0c, 0x4d, 0x9e, 0x78, 0xdc, 0xea,
|
56
|
+
0x4d, 0xbf, 0x07, 0x86, 0x77, 0x6e, 0x14, 0xe2, 0xcd, 0x73, 0xd1, 0x1b,
|
57
|
+
0x3d, 0xd8, 0x73, 0x4e, 0xf4, 0x22, 0x71, 0x83, 0xad, 0xb9, 0xae, 0x84,
|
58
|
+
0xb4, 0x0a, 0x9f, 0x64, 0x53, 0xd0, 0x2b, 0x1a, 0xe2, 0x92, 0x77, 0x8c,
|
59
|
+
0xdd, 0xf0, 0x63, 0xdb, 0xcf, 0xae, 0x4a, 0xf8, 0x93, 0xea, 0x46, 0x33,
|
60
|
+
0x0b, 0x9b, 0x92, 0x74, 0x7d, 0xa7, 0x18, 0x84, 0xdc, 0xe4, 0x8f, 0xc2,
|
61
|
+
0xe9, 0xcf, 0xf3, 0xa3, 0xa8, 0x42, 0x8e, 0xe7, 0x92, 0x87, 0x00, 0x94,
|
62
|
+
0x51, 0x3a, 0xae, 0x33, 0x66, 0xc9, 0xc5, 0x90, 0xd4, 0x31, 0x70, 0x2d,
|
63
|
+
0x19, 0x35, 0x1a, 0x4a, 0x49, 0x06, 0x00, 0x4c, 0x48, 0xe5, 0x40, 0xd4,
|
64
|
+
0xb0, 0x3d, 0x04, 0xc9, 0xce, 0x57, 0x6c, 0x4c, 0x01, 0x87, 0x19, 0x22,
|
65
|
+
0xd6, 0xb7, 0x2f, 0x31, 0x32, 0x7a, 0x3c, 0x20, 0xc2, 0xfe, 0x85, 0x2c,
|
66
|
+
0x5b, 0x04, 0xcb, 0x86, 0xf8, 0x1c, 0x66, 0x08, 0x7d, 0x73, 0x91, 0x14,
|
67
|
+
0x74, 0x6e, 0xa8, 0xc4, 0x3f, 0x70, 0xb6, 0xa7, 0xde, 0x77, 0xc4, 0x1a,
|
68
|
+
0x24, 0x93, 0x25, 0xb7
|
69
69
|
};
|
70
70
|
unsigned int cert_der_len = 796;
|
data/cert/cert_key.h
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
unsigned char cert_key_der[] = {
|
2
|
-
0x30, 0x82, 0x04,
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
0x01, 0x00,
|
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
|
-
0x55,
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
0x33,
|
99
|
-
|
100
|
-
|
101
|
-
|
2
|
+
0x30, 0x82, 0x04, 0xa6, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00,
|
3
|
+
0xbf, 0x78, 0xb9, 0x74, 0xc7, 0xf0, 0xbc, 0xf9, 0xe9, 0x4a, 0x83, 0x52,
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
+
0x53, 0xea, 0x5f, 0x6d, 0xd5, 0x2f, 0x8e, 0xbb, 0x6d, 0x6e, 0xab, 0x08,
|
60
|
+
0xef, 0xed, 0xa2, 0x46, 0x71, 0xc4, 0x30, 0xfd, 0xa3, 0x99, 0xaf, 0xe4,
|
61
|
+
0x56, 0x9b, 0xea, 0x3a, 0x9b, 0xe5, 0x18, 0x7a, 0xdb, 0x31, 0xd6, 0x6e,
|
62
|
+
0x68, 0x49, 0x14, 0xf5, 0xc2, 0x13, 0xff, 0x11, 0x3f, 0x56, 0x62, 0x61,
|
63
|
+
0xa1, 0x62, 0x31, 0x36, 0x7a, 0xae, 0x62, 0xbd, 0x12, 0xec, 0x55, 0x81,
|
64
|
+
0x0a, 0x91, 0xb2, 0xfe, 0xc8, 0xc9, 0x3f, 0xd3, 0x8c, 0x16, 0x27, 0x70,
|
65
|
+
0xe1, 0x31, 0x45, 0x1a, 0xa1, 0x05, 0xac, 0x79, 0x84, 0xb6, 0xbc, 0x58,
|
66
|
+
0xf0, 0x2c, 0x9c, 0x59, 0x41, 0x50, 0x8e, 0x11, 0x17, 0xe0, 0x38, 0x4d,
|
67
|
+
0x34, 0x09, 0x37, 0x09, 0x47, 0x80, 0x86, 0x69, 0x56, 0x48, 0x50, 0x57,
|
68
|
+
0x16, 0x9a, 0xb8, 0x28, 0x4d, 0x65, 0x02, 0x81, 0x81, 0x00, 0x83, 0x63,
|
69
|
+
0x07, 0x0a, 0x26, 0x2a, 0x12, 0x85, 0x10, 0x72, 0x5a, 0x5c, 0xbe, 0x0d,
|
70
|
+
0x72, 0x09, 0xed, 0xbc, 0x25, 0xe8, 0xf9, 0xb0, 0xfe, 0xa8, 0x6a, 0xad,
|
71
|
+
0x4a, 0x83, 0x78, 0xec, 0x23, 0x60, 0xa0, 0xd2, 0x83, 0x2e, 0xc7, 0xaa,
|
72
|
+
0x32, 0x4e, 0x2a, 0xed, 0xe2, 0x60, 0x7d, 0x05, 0x87, 0x13, 0x70, 0x16,
|
73
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d3, 0x78, 0xc0, 0x30, 0xee, 0xbc, 0x17, 0x29,
|
101
|
+
0x9b, 0x15, 0x82, 0x85, 0x6e, 0x9d
|
102
102
|
};
|
103
|
-
unsigned int cert_key_der_len =
|
103
|
+
unsigned int cert_key_der_len = 1194;
|
@@ -0,0 +1 @@
|
|
1
|
+
14508
|
@@ -8,9 +8,10 @@ Daemonite.new do
|
|
8
8
|
opts['server'].add_namespace "https://centurio.work/kelch"
|
9
9
|
|
10
10
|
t = opts['server'].types.add_object_type(:Test).tap{ |t|
|
11
|
-
t.
|
12
|
-
p
|
13
|
-
p
|
11
|
+
t.add_variable_rw :Wert do |node,value,external|
|
12
|
+
p node.id
|
13
|
+
p value
|
14
|
+
p external
|
14
15
|
end
|
15
16
|
}
|
16
17
|
|
@@ -24,7 +25,7 @@ Daemonite.new do
|
|
24
25
|
run do |opts|
|
25
26
|
opts['server'].run
|
26
27
|
opts['value'].value = rand
|
27
|
-
sleep
|
28
|
+
sleep 1
|
28
29
|
rescue => e
|
29
30
|
puts e.message
|
30
31
|
end
|
data/ext/opcua/server/server.c
CHANGED
@@ -342,18 +342,35 @@ static void node_add_variable_callback( //{{{
|
|
342
342
|
const UA_NumericRange *range, const UA_DataValue *data
|
343
343
|
) {
|
344
344
|
node_struct *me = (node_struct *)nodeContext;
|
345
|
-
|
346
|
-
|
347
|
-
//
|
348
|
-
//
|
349
|
-
//
|
350
|
-
//
|
351
|
-
// )
|
345
|
+
UA_Guid internal = UA_GUID("00000001-0000-0000-0000-000000000000");
|
346
|
+
|
347
|
+
// if (sessionId->identifierType == UA_NODEIDTYPE_NUMERIC) {
|
348
|
+
// printf("sessionId ns=%d;i=%d\n", sessionId->namespaceIndex, sessionId->identifier.numeric);
|
349
|
+
// } else if(sessionId->identifierType == UA_NODEIDTYPE_STRING) {
|
350
|
+
// printf("sessionId ns=%d;s=%.*s\n", sessionId->namespaceIndex, (int)sessionId->identifier.string.length, sessionId->identifier.string.data);
|
351
|
+
// } else if(sessionId->identifierType == UA_NODEIDTYPE_GUID) {
|
352
|
+
// if (UA_Guid_equal(&(sessionId->identifier.guid),&internal)) {
|
353
|
+
// printf("sessionId internal session\n");
|
354
|
+
// } else {
|
355
|
+
// printf("sessionId ns=%d;g=%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x\n",sessionId->namespaceIndex,UA_PRINTF_GUID_DATA(sessionId->identifier.guid));
|
356
|
+
// }
|
357
|
+
// } else if(sessionId->identifierType == UA_NODEIDTYPE_BYTESTRING) {
|
358
|
+
// printf("sessionId ns=%d;b=%.*s\n", sessionId->namespaceIndex, (int)sessionId->identifier.string.length, sessionId->identifier.string.data);
|
359
|
+
// } else if(UA_NodeId_isNull(sessionId)) {
|
360
|
+
// printf("sessionId is null");
|
361
|
+
// } else {
|
362
|
+
// printf("sessionId ns=%d;unsupported\n",sessionId->namespaceIndex);
|
363
|
+
// }
|
352
364
|
|
353
365
|
VALUE args = rb_ary_new();
|
354
366
|
rb_ary_push(args, Data_Wrap_Struct(cVarNode,NULL,NULL,me));
|
355
367
|
VALUE para = extract_value(data->value);
|
356
368
|
rb_ary_push(args,rb_ary_entry(para,0));
|
369
|
+
if (UA_Guid_equal(&(sessionId->identifier.guid),&internal)) {
|
370
|
+
rb_ary_push(args,Qfalse);
|
371
|
+
} else {
|
372
|
+
rb_ary_push(args,Qtrue);
|
373
|
+
}
|
357
374
|
if (me->method != Qnil) {
|
358
375
|
rb_proc_call(me->method,args);
|
359
376
|
}
|
data/lib/opcua/server.rb
CHANGED
@@ -46,11 +46,23 @@ module OPCUA
|
|
46
46
|
def add_property_rw(*item)
|
47
47
|
item.each { |e| add_property_rw e }
|
48
48
|
end
|
49
|
-
def add_variables(*item)
|
50
|
-
item.each
|
49
|
+
def add_variables(*item,&blk)
|
50
|
+
item.each do |e|
|
51
|
+
if blk.nil?
|
52
|
+
add_variable e
|
53
|
+
else
|
54
|
+
add_variable e, &blk
|
55
|
+
end
|
56
|
+
end
|
51
57
|
end
|
52
|
-
def add_variables_rw(*item)
|
53
|
-
item.each
|
58
|
+
def add_variables_rw(*item,&blk)
|
59
|
+
item.each do |e|
|
60
|
+
if blk.nil?
|
61
|
+
add_variable_rw e
|
62
|
+
else
|
63
|
+
add_variable_rw e, &blk
|
64
|
+
end
|
65
|
+
end
|
54
66
|
end
|
55
67
|
end
|
56
68
|
end
|
data/opcua.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "opcua"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.23"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of opcua (open62541) ruby bindings. C performance, Ruby elegance, simplicity, and productivity."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opcua
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.23'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: tools
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-01-
|
13
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: daemonite
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- example/server.rb
|
86
86
|
- example/server_deep.rb
|
87
87
|
- example/server_values.rb
|
88
|
+
- example/server_values_callback.pid
|
88
89
|
- example/server_values_callback.rb
|
89
90
|
- example/server_xml.rb
|
90
91
|
- example/test.rb
|