Module: XMLSecurity::C::XMLSec
- Extended by:
- FFI::Library
- Defined in:
- lib/xml_security/c/xml_sec.rb
Defined Under Namespace
Classes: XmlSecDSigCtx, XmlSecKeyInfoCtx, XmlSecKeyPtr, XmlSecKeyReq, XmlSecPtrList, XmlSecTransformCtx
Constant Summary
collapse
- XMLSEC_KEYINFO_FLAGS_X509DATA_DONT_VERIFY_CERTS =
0x00000200
- XMLSEC_KEYINFO_FLAGS_X509DATA_SKIP_STRICT_CHECKS =
0x00004000
Class Method Summary
collapse
Class Method Details
.init ⇒ Object
249
250
251
252
253
|
# File 'lib/xml_security/c/xml_sec.rb', line 249
def self.init
raise "Failed initializing XMLSec" if xmlSecInit < 0
raise "Failed initializing app crypto" if xmlSecOpenSSLAppInit(nil) < 0
raise "Failed initializing crypto" if xmlSecOpenSSLInit < 0
end
|
.shutdown ⇒ Object
255
256
257
258
259
|
# File 'lib/xml_security/c/xml_sec.rb', line 255
def self.shutdown
xmlSecOpenSSLShutdown
xmlSecOpenSSLAppShutdown
xmlSecShutdown
end
|
.xmlSecDSigNs ⇒ Object
229
230
231
|
# File 'lib/xml_security/c/xml_sec.rb', line 229
def self.xmlSecDSigNs
'http://www.w3.org/2000/09/xmldsig#'
end
|
.xmlSecEncNs ⇒ Object
233
234
235
|
# File 'lib/xml_security/c/xml_sec.rb', line 233
def self.xmlSecEncNs
'http://www.w3.org/2001/04/xmlenc#'
end
|
.xmlSecKeyDataTypeTrusted ⇒ Object
237
238
239
|
# File 'lib/xml_security/c/xml_sec.rb', line 237
def self.xmlSecKeyDataTypeTrusted
0x0100
end
|
.xmlSecNodeEncryptedData ⇒ Object
241
242
243
|
# File 'lib/xml_security/c/xml_sec.rb', line 241
def self.xmlSecNodeEncryptedData
'EncryptedData'
end
|
.xmlSecNodeKeyInfo ⇒ Object
221
222
223
|
# File 'lib/xml_security/c/xml_sec.rb', line 221
def self.xmlSecNodeKeyInfo
'KeyInfo'
end
|
.xmlSecNodeSignature ⇒ Object
217
218
219
|
# File 'lib/xml_security/c/xml_sec.rb', line 217
def self.xmlSecNodeSignature
'Signature'
end
|
.xmlSecNodeX509Certificate ⇒ Object
225
226
227
|
# File 'lib/xml_security/c/xml_sec.rb', line 225
def self.xmlSecNodeX509Certificate
'X509Certificate'
end
|