opcua 0.17 → 0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +12 -10
- data/cert/cert.h +52 -52
- data/cert/cert_key.h +101 -101
- data/ext/opcua/client/client.c +1 -1
- data/ext/opcua/helpers/values.c +2 -2
- data/ext/opcua/helpers/values.h +1 -2
- data/ext/opcua/server/server.c +2 -2
- data/opcua.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85b04352361150d99adee5b0b2ca5b5c97556affccf4d0247a6d8c4f574dca88
|
4
|
+
data.tar.gz: fb689c1e775847bd9921a70029334533052cf54cae2ec4e0733de26ee5058eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f45bf2700c9a6870c1797951e8d00891b8fc7e9a704674eb04696d1f1e00cde69cb55fff521437cc6534e5ea5dba6d28956866e950840647d4edf94721996e4
|
7
|
+
data.tar.gz: 75be7819729e8b69e169e37cfd1290e57760ab5429c86d46d392690634c748a568590669e2aebcaa6f36294125291be2664ec25e314108e391aae9ace45f6229
|
data/Rakefile
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
require 'rubygems/package_task'
|
2
|
-
require 'rake/extensiontask'
|
3
2
|
require 'fileutils'
|
4
3
|
|
5
4
|
spec = eval(File.read('opcua.gemspec'))
|
6
5
|
|
7
|
-
|
6
|
+
task :compile do
|
7
|
+
require 'rake/extensiontask'
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
puts `cert/generate_certificate.sh`
|
10
|
+
spec.extensions.each do |f|
|
11
|
+
Rake.application.clear
|
11
12
|
|
12
|
-
|
13
|
+
task :default => [:compile]
|
13
14
|
|
14
|
-
|
15
|
-
|
15
|
+
t = Rake::ExtensionTask.new "opcua/" + File.basename(File.dirname(f)), spec
|
16
|
+
Rake::Task[:default].invoke
|
17
|
+
end
|
18
|
+
Rake.application.clear
|
16
19
|
end
|
17
|
-
Rake.application.clear
|
18
20
|
|
19
|
-
task :default => [:
|
21
|
+
task :default => [:compile]
|
20
22
|
|
21
|
-
|
23
|
+
Gem::PackageTask.new(spec) do |pkg|
|
22
24
|
pkg.need_zip = true
|
23
25
|
pkg.need_tar = true
|
24
26
|
FileUtils.mkdir 'pkg' rescue nil
|
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, 0x46, 0x2d, 0x1b, 0x12, 0x4a, 0xae, 0x88, 0xed, 0xa5,
|
4
|
+
0xdd, 0xbe, 0xe3, 0x9b, 0x50, 0x2e, 0xec, 0x6b, 0x28, 0x15, 0x4f, 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, 0x30, 0x30,
|
9
|
-
|
10
|
-
|
8
|
+
0x61, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x33, 0x31, 0x38, 0x31,
|
9
|
+
0x37, 0x33, 0x33, 0x35, 0x39, 0x5a, 0x17, 0x0d, 0x32, 0x31, 0x30, 0x33,
|
10
|
+
0x30, 0x38, 0x31, 0x37, 0x33, 0x33, 0x35, 0x39, 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, 0xc7, 0xf0, 0xff, 0x6d, 0xed, 0xd0, 0xf2,
|
16
|
+
0x3c, 0x0f, 0x8f, 0xce, 0x17, 0x49, 0x2a, 0x82, 0x44, 0x37, 0x09, 0x3c,
|
17
|
+
0x31, 0xf5, 0x56, 0xe7, 0x63, 0x76, 0x20, 0x2e, 0x6f, 0xb6, 0xc9, 0x78,
|
18
|
+
0x8d, 0xbb, 0x2a, 0x57, 0x1b, 0x0b, 0xdf, 0x93, 0xda, 0xbe, 0x17, 0x19,
|
19
|
+
0xc3, 0x53, 0x0c, 0xd3, 0x3a, 0x63, 0xef, 0xc4, 0x58, 0x70, 0x6a, 0xa6,
|
20
|
+
0x3b, 0xe9, 0xf6, 0x74, 0xb0, 0x95, 0x2d, 0x4f, 0x63, 0xd9, 0x60, 0x8b,
|
21
|
+
0x8f, 0xef, 0x65, 0x62, 0x32, 0x1f, 0xec, 0x5f, 0x61, 0x1f, 0x24, 0xbb,
|
22
|
+
0xb2, 0x88, 0xce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3, 0x1d,
|
36
|
+
0xff, 0x76, 0x91, 0x63, 0x01, 0xf8, 0xbf, 0x51, 0xf5, 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, 0x63, 0xdb, 0x0e, 0xc7, 0x7a, 0x77, 0x8c,
|
39
|
+
0x89, 0x87, 0x96, 0x9a, 0x4a, 0x71, 0xdf, 0xa2, 0x64, 0x79, 0x25, 0xe3,
|
40
|
+
0x7d, 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
|
-
0x4b,
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
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0x6e, 0x2c, 0x02, 0x4e,
|
61
|
+
0x60, 0x30, 0x32, 0x3b, 0x63, 0xbe, 0xa3, 0xad, 0x9c, 0xdc, 0xb5, 0x28,
|
62
|
+
0x4b, 0x6d, 0x77, 0x5e, 0x87, 0xbf, 0x70, 0xb3, 0xac, 0xc5, 0xb9, 0x41,
|
63
|
+
0xdd, 0x4f, 0x1d, 0x6d, 0x69, 0xef, 0xab, 0x89, 0xc3, 0x52, 0x82, 0xf7,
|
64
|
+
0xf8, 0x2b, 0x97, 0x65, 0x7a, 0x1e, 0x7f, 0xac, 0xa3, 0x15, 0x36, 0x33,
|
65
|
+
0xd0, 0xb8, 0x15, 0x21, 0x0a, 0xd4, 0x4b, 0x27, 0xcc, 0x5c, 0x1f, 0x87,
|
66
|
+
0x5f, 0x36, 0xd5, 0x85, 0x0c, 0x58, 0xd4, 0xe5, 0x1f, 0x6d, 0x4b, 0xa2,
|
67
|
+
0xe5, 0x33, 0xc8, 0xd0, 0x1b, 0x6a, 0x64, 0xeb, 0xd0, 0xd8, 0x72, 0xab,
|
68
|
+
0x0d, 0x34, 0x43, 0xe1
|
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
|
-
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
|
-
|
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
|
-
0x84,
|
101
|
-
|
2
|
+
0x30, 0x82, 0x04, 0xa2, 0x02, 0x01, 0x00, 0x02, 0x82, 0x01, 0x01, 0x00,
|
3
|
+
0xc7, 0xf0, 0xff, 0x6d, 0xed, 0xd0, 0xf2, 0x3c, 0x0f, 0x8f, 0xce, 0x17,
|
4
|
+
0x49, 0x2a, 0x82, 0x44, 0x37, 0x09, 0x3c, 0x31, 0xf5, 0x56, 0xe7, 0x63,
|
5
|
+
0x76, 0x20, 0x2e, 0x6f, 0xb6, 0xc9, 0x78, 0x8d, 0xbb, 0x2a, 0x57, 0x1b,
|
6
|
+
0x0b, 0xdf, 0x93, 0xda, 0xbe, 0x17, 0x19, 0xc3, 0x53, 0x0c, 0xd3, 0x3a,
|
7
|
+
0x63, 0xef, 0xc4, 0x58, 0x70, 0x6a, 0xa6, 0x3b, 0xe9, 0xf6, 0x74, 0xb0,
|
8
|
+
0x95, 0x2d, 0x4f, 0x63, 0xd9, 0x60, 0x8b, 0x8f, 0xef, 0x65, 0x62, 0x32,
|
9
|
+
0x1f, 0xec, 0x5f, 0x61, 0x1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d9, 0xc2, 0x4f,
|
92
|
+
0xf2, 0x64, 0x05, 0x53, 0x46, 0xbd, 0x6f, 0x93, 0xdd, 0x14, 0x98, 0x3d,
|
93
|
+
0xd6, 0x7e, 0x24, 0xd7, 0xdf, 0xc5, 0xbf, 0xde, 0xfb, 0x4c, 0x7b, 0xe4,
|
94
|
+
0x76, 0xe8, 0x60, 0x78, 0xb1, 0xcc, 0x57, 0xa0, 0x22, 0x43, 0xfa, 0x22,
|
95
|
+
0x8b, 0xd0, 0x11, 0x39, 0x5d, 0x7f, 0x78, 0xf3, 0xe1, 0x3d, 0x5a, 0x3b,
|
96
|
+
0x8e, 0x9a, 0x73, 0x0f, 0xc4, 0xc1, 0xf3, 0x2b, 0xb3, 0x3e, 0x13, 0x83,
|
97
|
+
0xa0, 0x3f, 0x14, 0xe6, 0x23, 0x94, 0x20, 0xbb, 0x2e, 0xf2, 0x29, 0x13,
|
98
|
+
0xab, 0x6c, 0x6e, 0x78, 0x3e, 0xd8, 0xf8, 0x03, 0x1b, 0x87, 0x51, 0x2f,
|
99
|
+
0xdc, 0x9e, 0x58, 0xaf, 0x1f, 0xc6, 0x12, 0x37, 0xe8, 0xfe, 0xbe, 0xdd,
|
100
|
+
0x84, 0x15, 0x5d, 0xa3, 0x94, 0xaa, 0xf2, 0xb0, 0x5a, 0xf2, 0xa6, 0xa9,
|
101
|
+
0x88, 0x69
|
102
102
|
};
|
103
|
-
unsigned int cert_key_der_len =
|
103
|
+
unsigned int cert_key_der_len = 1190;
|
data/ext/opcua/client/client.c
CHANGED
@@ -631,7 +631,7 @@ void Init_client(void) {
|
|
631
631
|
cMethodNode = rb_define_class_under(cClient, "cMethodNode", cNode);
|
632
632
|
cVarNode = rb_define_class_under(cClient, "cVarNode", cNode);
|
633
633
|
|
634
|
-
Init_types();
|
634
|
+
Init_types(mOPCUA);
|
635
635
|
|
636
636
|
rb_define_alloc_func(cClient, client_alloc);
|
637
637
|
rb_define_method(cClient, "initialize", client_init, 3);
|
data/ext/opcua/helpers/values.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#include "values.h"
|
2
2
|
|
3
|
-
VALUE
|
3
|
+
VALUE mTYPES;
|
4
4
|
|
5
5
|
/* -- */
|
6
6
|
static void variant_set_one_dimension(UA_Variant *variant,UA_UInt32 len) { //{{{
|
@@ -171,7 +171,7 @@ bool value_to_variant(VALUE value, UA_Variant *variant, UA_UInt32 proposal) { //
|
|
171
171
|
return done;
|
172
172
|
} //}}}
|
173
173
|
|
174
|
-
void Init_types() {/*{{{*/
|
174
|
+
void Init_types(VALUE mOPCUA) {/*{{{*/
|
175
175
|
mTYPES = rb_define_module_under(mOPCUA,"TYPES");
|
176
176
|
rb_define_const(mTYPES, "DATETIME", INT2NUM(UA_TYPES_DATETIME ));
|
177
177
|
rb_define_const(mTYPES, "BOOLEAN", INT2NUM(UA_TYPES_BOOLEAN ));
|
data/ext/opcua/helpers/values.h
CHANGED
@@ -4,9 +4,8 @@
|
|
4
4
|
#include <open62541.h>
|
5
5
|
#include <ruby.h>
|
6
6
|
|
7
|
-
VALUE mTYPES;
|
8
7
|
RUBY_EXTERN bool value_to_variant(VALUE value, UA_Variant *variant, UA_UInt32 proposal);
|
9
|
-
RUBY_EXTERN void Init_types();
|
8
|
+
RUBY_EXTERN void Init_types(VALUE mOPCUA);
|
10
9
|
RUBY_EXTERN VALUE extract_value(UA_Variant value);
|
11
10
|
|
12
11
|
#endif
|
data/ext/opcua/server/server.c
CHANGED
@@ -978,7 +978,7 @@ void Init_server(void) {
|
|
978
978
|
rb_define_const(mOPCUA, "BASEDATAVARIABLETYPE", INT2NUM(UA_NS0ID_BASEDATAVARIABLETYPE));
|
979
979
|
rb_define_const(mOPCUA, "PROPERTYTYPE", INT2NUM(UA_NS0ID_PROPERTYTYPE));
|
980
980
|
|
981
|
-
Init_types();
|
981
|
+
Init_types(mOPCUA);
|
982
982
|
|
983
983
|
cServer = rb_define_class_under(mOPCUA, "Server", rb_cObject);
|
984
984
|
cNode = rb_define_class_under(cServer, "Node", rb_cObject);
|
@@ -1013,7 +1013,7 @@ void Init_server(void) {
|
|
1013
1013
|
rb_define_method(cNode, "exists?", node_exists, 0);
|
1014
1014
|
|
1015
1015
|
rb_define_method(cTypeTopNode, "add_object_type", node_add_object_type, 1);
|
1016
|
-
rb_define_method(cTypeTopNode, "add_reference_type", node_add_reference_type,
|
1016
|
+
rb_define_method(cTypeTopNode, "add_reference_type", node_add_reference_type, 2);
|
1017
1017
|
rb_define_method(cTypeTopNode, "folder", node_type_folder, 0);
|
1018
1018
|
|
1019
1019
|
rb_define_method(cTypeSubNode, "add_object_type", node_add_object_type, 1);
|
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.18"
|
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.18'
|
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: 2020-
|
12
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daemonite
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
139
|
+
rubygems_version: 3.1.2
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Preliminary release of opcua (open62541) ruby bindings. C performance, Ruby
|