nokogiri-xmlsec-instructure 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed59b79032290908cffa12a20deb7b0d5c2195e45a817e430d49bfc404243bee
4
- data.tar.gz: b315b63fe30ab7760719bce3e435b36c3565b658eb0ac42d1fb6d6f48c65b974
3
+ metadata.gz: c965ea097e9ec7b7dedac12996ec36ab775f237181d98b9386e3d80d0e84d235
4
+ data.tar.gz: 8e4dd46952e351d39ebc19ca2e10d3d0762ca7e81df16886913ea58490790ba3
5
5
  SHA512:
6
- metadata.gz: 660d2ff3242177e1e6fd09112afed32ae5507d331c3c2fedd7c920a75cf09b58115ca14d3915fa76297ee7879594b314caacef967b5b90903d3fd1b9b36a4aff
7
- data.tar.gz: d96e85677b8f9c34b3df00ae1d878d1de8c8f69d7ed5d78f76a680a504e8afcee4d55c398ccdc6e766a773a1bb45466bbe507985930839c4591dd2c452d8153d
6
+ metadata.gz: baa8a957e1c8eb270c9724a51116a783e8f9b712c08400760c542c7245371ab9c4002aca916bff96174c932a3ef5da4d280e837e0496f4cc46be08c35954e645
7
+ data.tar.gz: daec89dfddfd5a2bd16f4d19acf5e0ffd305863f11c98805b751f451801a178a1aa6d324c26824345ef1dcce08d52b17b4c85a1436ecf2d75a15e2744ebfec0f
@@ -66,10 +66,6 @@ void Init_nokogiri_ext_xmlsec() {
66
66
  rb_raise(rb_eRuntimeError, "xmlsec-crypto initialization failed");
67
67
  }
68
68
 
69
- // Set Error callback catcher last because various modules also call this.
70
- // This way we always win.
71
- xmlSecErrorsSetCallback(storeErrorCallback);
72
-
73
69
  /* ruby classes & objects */
74
70
  Init_Nokogiri_ext();
75
71
  }
@@ -69,6 +69,8 @@ done:
69
69
  xmlSecKeysMngrDestroy(keyManager);
70
70
  }
71
71
 
72
+ xmlSecErrorsSetCallback(xmlSecErrorsDefaultCallback);
73
+
72
74
  if(rb_exception_result != Qnil) {
73
75
  if (hasXmlSecLastError()) {
74
76
  rb_raise(rb_exception_result, "%s, XmlSec error: %s", exception_message,
@@ -156,6 +156,8 @@ done:
156
156
  xmlSecKeysMngrDestroy(keyManager);
157
157
  }
158
158
 
159
+ xmlSecErrorsSetCallback(xmlSecErrorsDefaultCallback);
160
+
159
161
  if(rb_exception_result != Qnil) {
160
162
  if (hasXmlSecLastError()) {
161
163
  rb_raise(rb_exception_result, "%s, XmlSec error: %s", exception_message,
@@ -56,6 +56,8 @@ done:
56
56
  xmlFree(name);
57
57
  }
58
58
 
59
+ xmlSecErrorsSetCallback(xmlSecErrorsDefaultCallback);
60
+
59
61
  if(rb_exception_result != Qnil) {
60
62
  if (exception_attribute_arg) {
61
63
  if (hasXmlSecLastError()) {
@@ -232,6 +232,8 @@ done:
232
232
  xmlSecDSigCtxDestroy(dsigCtx);
233
233
  }
234
234
 
235
+ xmlSecErrorsSetCallback(xmlSecErrorsDefaultCallback);
236
+
235
237
  if(rb_exception_result != Qnil) {
236
238
  // remove the signature node before raising an exception, so that
237
239
  // the document is untouched
@@ -246,6 +246,8 @@ done:
246
246
  xmlSecKeysMngrDestroy(keyManager);
247
247
  }
248
248
 
249
+ xmlSecErrorsSetCallback(xmlSecErrorsDefaultCallback);
250
+
249
251
  if(!NIL_P(rb_exception_result)) {
250
252
  if (hasXmlSecLastError()) {
251
253
  rb_raise(rb_exception_result, "%s, XmlSec error: %s", exception_message,
@@ -102,6 +102,7 @@ int hasXmlSecLastError() {
102
102
  void resetXmlSecError() {
103
103
  g_errorStack[0] = '\0';
104
104
  g_errorStackPos = 0;
105
+ xmlSecErrorsSetCallback(storeErrorCallback);
105
106
  }
106
107
 
107
108
  void storeErrorCallback(const char *file,
@@ -18,6 +18,7 @@
18
18
  #include <xmlsec/xmlenc.h>
19
19
  #include <xmlsec/templates.h>
20
20
  #include <xmlsec/crypto.h>
21
+ #include <xmlsec/errors.h>
21
22
 
22
23
  // TODO(awong): Support non-gcc and non-clang compilers.
23
24
  #define EXTENSION_EXPORT __attribute__((visibility("default")))
@@ -1,3 +1,3 @@
1
1
  module Xmlsec
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri-xmlsec-instructure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert J. Wong
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-27 00:00:00.000000000 Z
12
+ date: 2018-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri