opcua 0.13 → 0.14
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/ext/opcua/helpers/finders.c +1 -1
- data/ext/opcua/server/server.c +26 -2
- data/opcua.gemspec +1 -1
- metadata +3 -7
- data/example/array/Makefile +0 -3
- data/example/array/clienttest.c +0 -168
- data/example/array/open62541.h +0 -27464
- data/example/array/servertest.c +0 -142
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71ac9b3ff8dcea67645e1add922ef8364da99baefaf94cdd68b2a5551cb5a05d
|
4
|
+
data.tar.gz: b3a3af659fb1216fa8304e9a64b21320f4668f85dea3be093a3cc79b28f2cc46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e00af7bcd8c99ef6e3fed51e52089be84d076dd8f3cf9ed61b1902ca1d3afe92a0658a2a595d7de07b1bcaed288bdef81b9ed59ed78fdeb1c619b2fde52a088
|
7
|
+
data.tar.gz: 36c00e00af09035a43b0572f974fe1047d2379ebbec574838cafec6c6fe5a22e63aae4406a6ca1900d4cbd23abb8567aa1cdae0e4c9784e3daf8a17d04471652
|
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, 0x6c, 0x8d, 0x53, 0x59, 0xbd, 0x7e, 0xc0, 0x91, 0x4c,
|
4
|
+
0xd5, 0xe4, 0x87, 0xe0, 0xf3, 0x56, 0x8d, 0xc8, 0xff, 0x22, 0x7f, 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, 0x31, 0x39, 0x30, 0x37,
|
9
|
-
|
10
|
-
|
8
|
+
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x39, 0x30, 0x37, 0x32, 0x35, 0x32,
|
9
|
+
0x31, 0x33, 0x37, 0x35, 0x38, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x37,
|
10
|
+
0x31, 0x34, 0x32, 0x31, 0x33, 0x37, 0x35, 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, 0xde, 0x35, 0x97, 0x69, 0x57, 0x0f, 0x84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x41, 0x8b, 0x63, 0x71, 0xe6, 0xa7,
|
30
|
+
0x6d, 0xdf, 0x3b, 0xd9, 0xc6, 0xcd, 0x63, 0xf6, 0xcc, 0x5b, 0x54, 0xda,
|
31
|
+
0x1e, 0x35, 0xdd, 0x97, 0x91, 0x09, 0x1b, 0x5e, 0x54, 0x67, 0xb9, 0xdc,
|
32
|
+
0x01, 0x52, 0x35, 0x3a, 0x44, 0xd4, 0x90, 0x5d, 0x24, 0xf8, 0xb4, 0x9e,
|
33
|
+
0xd8, 0xb8, 0xd4, 0xeb, 0xfb, 0xd3, 0x4c, 0x7f, 0x56, 0xbe, 0x71, 0x9c,
|
34
|
+
0x64, 0xcd, 0x71, 0xf7, 0x0b, 0x83, 0x69, 0x22, 0xc8, 0xcd, 0x2c, 0x92,
|
35
|
+
0x67, 0x9c, 0x9a, 0x9c, 0xe0, 0xdf, 0x6e, 0x38, 0xae, 0x03, 0x00, 0xb5,
|
36
|
+
0x52, 0x0b, 0x7e, 0x08, 0x82, 0xa5, 0x0e, 0xa1, 0xc3, 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, 0x67, 0x50, 0x19, 0x18, 0x5e, 0x70, 0xa9,
|
39
|
+
0xa9, 0xaa, 0x27, 0x1d, 0xaa, 0xdd, 0xc4, 0x2a, 0x19, 0xe3, 0x7e, 0xd1,
|
40
|
+
0x90, 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
|
+
0x90, 0x2d, 0xaa, 0x43, 0xb4, 0xcc, 0x70, 0xa4, 0x96, 0x4d, 0x5a, 0xb8,
|
48
|
+
0x9b, 0xbd, 0xa4, 0xd0, 0xc4, 0x88, 0x3d, 0x47, 0x83, 0x49, 0x1d, 0x54,
|
49
|
+
0x15, 0xbb, 0x9c, 0x25, 0xef, 0xa2, 0x0b, 0x0f, 0x6c, 0x11, 0x83, 0x62,
|
50
|
+
0x05, 0x90, 0x0a, 0x99, 0x69, 0x74, 0x4a, 0xc2, 0x9e, 0xac, 0x3a, 0x9f,
|
51
|
+
0x21, 0xde, 0x83, 0x59, 0xed, 0x51, 0x68, 0x93, 0x5c, 0x23, 0xb0, 0x61,
|
52
|
+
0x4c, 0xb3, 0x1a, 0x51, 0xab, 0x8a, 0xe1, 0x3f, 0x9d, 0x81, 0xb4, 0xe6,
|
53
|
+
0x8b, 0xe0, 0x94, 0xc0, 0x17, 0x9c, 0x06, 0xf2, 0x01, 0x5d, 0x54, 0x37,
|
54
|
+
0x21, 0xcd, 0x95, 0xa4,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d, 0x08, 0x5b
|
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
|
-
|
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
|
-
|
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
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
2
|
+
0x30, 0x82, 0x04, 0xa5, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00,
|
3
|
+
0xde, 0x35, 0x97, 0x69, 0x57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x85, 0x30, 0x48, 0xbf,
|
100
|
+
0x3a, 0xd7, 0x04, 0x82, 0xba, 0x0b, 0xa1, 0x20, 0x25, 0x65, 0xe4, 0x6c,
|
101
|
+
0x20, 0x06, 0x00, 0xd2, 0xbe
|
102
102
|
};
|
103
|
-
unsigned int cert_key_der_len =
|
103
|
+
unsigned int cert_key_der_len = 1193;
|
data/ext/opcua/helpers/finders.c
CHANGED
@@ -23,7 +23,7 @@ bool server_node_get_reference(UA_Server *server, UA_NodeId parent, UA_NodeId *r
|
|
23
23
|
bDes.nodeId = parent;
|
24
24
|
bDes.resultMask = UA_BROWSERESULTMASK_ALL;
|
25
25
|
bDes.browseDirection = inverse ? 1 : 0;
|
26
|
-
UA_BrowseResult bRes = UA_Server_browse(server,
|
26
|
+
UA_BrowseResult bRes = UA_Server_browse(server, 999, &bDes);
|
27
27
|
|
28
28
|
if (bRes.referencesSize > 0) {
|
29
29
|
UA_ReferenceDescription *ref = &(bRes.references[0]);
|
data/ext/opcua/server/server.c
CHANGED
@@ -17,8 +17,27 @@ VALUE cMethodNode = Qnil;
|
|
17
17
|
int nodecounter = 2000;
|
18
18
|
|
19
19
|
/* -- */
|
20
|
+
static void node_mark(node_struct *ns) { //{{{
|
21
|
+
if (ns == NULL) return;
|
22
|
+
// if (ns->id.identifierType == UA_NODEIDTYPE_NUMERIC) {
|
23
|
+
// printf("mark ns=%d;i=%d\n", ns->id.namespaceIndex, ns->id.identifier.numeric);
|
24
|
+
// } else if(ns->id.identifierType == UA_NODEIDTYPE_STRING) {
|
25
|
+
// printf("mark ns=%d;s=%.*s\n", ns->id.namespaceIndex, (int)ns->id.identifier.string.length, ns->id.identifier.string.data);
|
26
|
+
// } else {
|
27
|
+
// printf("mark ns=%d;unsupported\n",ns->id.namespaceIndex);
|
28
|
+
// }
|
29
|
+
if (!NIL_P(ns->method)) rb_gc_mark(ns->method);
|
30
|
+
} // }}}
|
20
31
|
static void node_free(node_struct *ns) { //{{{
|
21
32
|
if (ns != NULL) {
|
33
|
+
// if (!ns->exists) rb_raise(rb_eRuntimeError, "Node does not exist anymore.");
|
34
|
+
// if (ns->id.identifierType == UA_NODEIDTYPE_NUMERIC) {
|
35
|
+
// printf("delete ns=%d;i=%d\n", ns->id.namespaceIndex, ns->id.identifier.numeric);
|
36
|
+
// } else if(ns->id.identifierType == UA_NODEIDTYPE_STRING) {
|
37
|
+
// printf("delete ns=%d;s=%.*s\n", ns->id.namespaceIndex, (int)ns->id.identifier.string.length, ns->id.identifier.string.data);
|
38
|
+
// } else {
|
39
|
+
// printf("delete ns=%d;unsupported\n",ns->id.namespaceIndex);
|
40
|
+
// }
|
22
41
|
if (!NIL_P(ns->method)) {
|
23
42
|
rb_gc_unregister_address(&ns->method);
|
24
43
|
}
|
@@ -39,7 +58,7 @@ static node_struct * node_alloc(server_struct *server, UA_NodeId nodeid) { //{{{
|
|
39
58
|
return ns;
|
40
59
|
} //}}}
|
41
60
|
static VALUE node_wrap(VALUE klass, node_struct *ns) { //{{{
|
42
|
-
return Data_Wrap_Struct(klass,
|
61
|
+
return Data_Wrap_Struct(klass, node_mark, node_free, ns);
|
43
62
|
} //}}}
|
44
63
|
/* ++ */
|
45
64
|
|
@@ -592,7 +611,7 @@ static VALUE node_manifest(VALUE self, VALUE name, VALUE parent) { //{{{
|
|
592
611
|
|
593
612
|
node_add_object_ua_rec(n,UA_LOCALIZEDTEXT("en-US", nstr),UA_QUALIFIEDNAME(ns->master->default_ns, nstr),ns,ts,ts->id,node_manifest_iter,(void *)handle);
|
594
613
|
|
595
|
-
return Data_Wrap_Struct(CLASS_OF(self),
|
614
|
+
return Data_Wrap_Struct(CLASS_OF(self), node_mark, node_free, ret);
|
596
615
|
} //}}}
|
597
616
|
|
598
617
|
static VALUE node_find(VALUE self, VALUE qname) { //{{{
|
@@ -782,6 +801,9 @@ static VALUE node_description(VALUE self) { //{{{
|
|
782
801
|
/* -- */
|
783
802
|
static void server_free(server_struct *pss) { //{{{
|
784
803
|
if (pss != NULL) {
|
804
|
+
if (!NIL_P(pss->methods)) {
|
805
|
+
rb_gc_unregister_address(&pss->methods);
|
806
|
+
}
|
785
807
|
UA_Server_delete(pss->master);
|
786
808
|
free(pss);
|
787
809
|
}
|
@@ -798,6 +820,8 @@ static VALUE server_alloc(VALUE self) { //{{{
|
|
798
820
|
pss->debug = true;
|
799
821
|
pss->methods = rb_hash_new();
|
800
822
|
|
823
|
+
rb_gc_register_address(&pss->methods);
|
824
|
+
|
801
825
|
UA_ServerConfig_setDefault(pss->config);
|
802
826
|
|
803
827
|
return Data_Wrap_Struct(self, NULL, server_free, pss);
|
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.14"
|
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.14'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-07-
|
12
|
+
date: 2019-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daemonite
|
@@ -63,8 +63,8 @@ description: see https://github.com/etm/opcua-smart
|
|
63
63
|
email: juergen.mangler@gmail.com
|
64
64
|
executables: []
|
65
65
|
extensions:
|
66
|
-
- ext/opcua/client/extconf.rb
|
67
66
|
- ext/opcua/server/extconf.rb
|
67
|
+
- ext/opcua/client/extconf.rb
|
68
68
|
extra_rdoc_files:
|
69
69
|
- README.md
|
70
70
|
files:
|
@@ -73,10 +73,6 @@ files:
|
|
73
73
|
- Rakefile
|
74
74
|
- cert/cert.h
|
75
75
|
- cert/cert_key.h
|
76
|
-
- example/array/Makefile
|
77
|
-
- example/array/clienttest.c
|
78
|
-
- example/array/open62541.h
|
79
|
-
- example/array/servertest.c
|
80
76
|
- example/bug5.rb
|
81
77
|
- example/client_get_sync.rb
|
82
78
|
- example/client_get_value.rb
|