Sha256: f139284c82c06c566b6c9ccef6ad1c1305cb78d7595ab7ffc6957067566dd0e3

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

#ifndef NOKOGIRI_EXT_XMLSEC_OPTIONS_H
#define NOKOGIRI_EXT_XMLSEC_OPTIONS_H

#include "common.h"

#include <ruby.h>
#include <xmlsec/crypto.h>

typedef struct {
  // From :block_encryption
  xmlSecTransformId block_encryption;
  const char* key_type;
  int key_bits;

  // From :key_transport
  xmlSecTransformId key_transport;
} XmlEncOptions;

// Supported algorithms taken from #5.1 of
// http://www.w3.org/TR/xmlenc-core
//
// For options, only use the URL fragment (stuff post #)
// since that's unique enough and it removes a lot of typing.
BOOL GetXmlEncOptions(VALUE rb_opts, XmlEncOptions* options,
                      VALUE* rb_exception_result,
                      const char** exception_message);

// XML DSIG helpers.
xmlSecTransformId GetSignatureMethod(VALUE rb_method,
                                     VALUE* rb_exception_result,
                                     const char** exception_message);
xmlSecTransformId GetDigestMethod(VALUE rb_digest_method,
                                  VALUE* rb_exception_result,
                                  const char** exception_message);

#endif  // NOKOGIRI_EXT_XMLSEC_OPTIONS_H

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
nokogiri-xmlsec-instructure-0.10.3 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.10.2 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.10.1 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.10.0 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.9.7 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.9.6 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.9.5 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-instructure-0.9.4 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-me-harder-0.9.2 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-me-harder-0.9.1 ext/nokogiri_ext_xmlsec/options.h
nokogiri-xmlsec-me-harder-0.9.0 ext/nokogiri_ext_xmlsec/options.h