xmlsec-ruby 0.0.4 → 0.0.5a
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/xmlsec/simple-xmlsec.c +0 -32
- metadata +13 -10
data/ext/xmlsec/simple-xmlsec.c
CHANGED
@@ -83,9 +83,7 @@ xmlSecAppAddIDAttr(xmlNodePtr node, const xmlChar* attrName, const xmlChar* node
|
|
83
83
|
int verify_file(const char* xmlMessage, const char* key) {
|
84
84
|
xmlDocPtr doc = NULL;
|
85
85
|
/* Init libxml and libxslt libraries */
|
86
|
-
xmlInitParser();
|
87
86
|
LIBXML_TEST_VERSION
|
88
|
-
xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS;
|
89
87
|
xmlSubstituteEntitiesDefault(1);
|
90
88
|
doc = xmlParseDoc((xmlChar *) xmlMessage) ;
|
91
89
|
return verify_document(doc, key);
|
@@ -171,27 +169,6 @@ int initialize()
|
|
171
169
|
return(-1);
|
172
170
|
}
|
173
171
|
|
174
|
-
/* Load default crypto engine if we are supporting dynamic
|
175
|
-
* loading for xmlsec-crypto libraries. Use the crypto library
|
176
|
-
* name ("openssl", "nss", etc.) to load corresponding
|
177
|
-
* xmlsec-crypto library.
|
178
|
-
*/
|
179
|
-
#ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING
|
180
|
-
if(xmlSecCryptoDLLoadLibrary(BAD_CAST XMLSEC_CRYPTO) < 0) {
|
181
|
-
fprintf(stdout, "Error: unable to load default xmlsec-crypto library. Make sure\n"
|
182
|
-
"that you have it installed and check shared libraries path\n"
|
183
|
-
"(LD_LIBRARY_PATH) envornment variable.\n");
|
184
|
-
fflush(stdout) ;
|
185
|
-
return(-1);
|
186
|
-
}
|
187
|
-
#endif /* XMLSEC_CRYPTO_DYNAMIC_LOADING */
|
188
|
-
|
189
|
-
/* Init crypto library */
|
190
|
-
if(xmlSecCryptoAppInit(NULL) < 0) {
|
191
|
-
fprintf(stderr, "Error: crypto initialization failed.\n");
|
192
|
-
return(-1);
|
193
|
-
}
|
194
|
-
|
195
172
|
/* Init xmlsec-crypto library */
|
196
173
|
if(xmlSecCryptoInit() < 0) {
|
197
174
|
fprintf(stderr, "Error: xmlsec-crypto initialization failed.\n");
|
@@ -209,16 +186,7 @@ void SecShutdown()
|
|
209
186
|
/* Shutdown xmlsec-crypto library */
|
210
187
|
xmlSecCryptoShutdown();
|
211
188
|
|
212
|
-
/* Shutdown crypto library */
|
213
|
-
xmlSecCryptoAppShutdown();
|
214
|
-
|
215
189
|
/* Shutdown xmlsec library */
|
216
190
|
xmlSecShutdown();
|
217
|
-
|
218
|
-
/* Shutdown libxslt/libxml */
|
219
|
-
#ifndef XMLSEC_NO_XSLT
|
220
|
-
xsltCleanupGlobals();
|
221
|
-
#endif /* XMLSEC_NO_XSLT */
|
222
|
-
xmlCleanupParser();
|
223
191
|
return ;
|
224
192
|
}
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlsec-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 62
|
5
|
+
prerelease: 5
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
|
9
|
+
- 5
|
10
|
+
- a
|
11
|
+
version: 0.0.5a
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Victor Lin
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date:
|
19
|
+
date: 2011-04-18 00:00:00 -07:00
|
19
20
|
default_executable:
|
20
21
|
dependencies: []
|
21
22
|
|
@@ -53,16 +54,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
55
|
none: false
|
55
56
|
requirements:
|
56
|
-
- - "
|
57
|
+
- - ">"
|
57
58
|
- !ruby/object:Gem::Version
|
58
|
-
hash:
|
59
|
+
hash: 25
|
59
60
|
segments:
|
60
|
-
-
|
61
|
-
|
61
|
+
- 1
|
62
|
+
- 3
|
63
|
+
- 1
|
64
|
+
version: 1.3.1
|
62
65
|
requirements: []
|
63
66
|
|
64
67
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.
|
68
|
+
rubygems_version: 1.6.2
|
66
69
|
signing_key:
|
67
70
|
specification_version: 3
|
68
71
|
summary: Ruby bindings for xmlsec1
|