/usr/include/arc/xmlsec/saml_util.h is in nordugrid-arc-dev 4.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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 | #ifndef __ARC_SAMLUTIL_H__
#define __ARC_SAMLUTIL_H__
#include <vector>
#include <string>
#include <xmlsec/crypto.h>
#include <arc/XMLNode.h>
#define SAML_NAMESPACE "urn:oasis:names:tc:SAML:2.0:assertion"
#define SAMLP_NAMESPACE "urn:oasis:names:tc:SAML:2.0:protocol"
#define XENC_NAMESPACE "http://www.w3.org/2001/04/xmlenc#"
#define DSIG_NAMESPACE "http://www.w3.org/2000/09/xmldsig#"
namespace Arc {
typedef enum {
RSA_SHA1,
DSA_SHA1
} SignatureMethod;
std::string DeflateData(const std::string& data);
std::string InflateData(const std::string& data);
std::string URIEscape(const std::string& data);
std::string URIUnEscape(const std::string& data);
std::string Base64Encode(const std::string& data);
std::string Base64Decode(const std::string& data);
std::string SignQuery(std::string query, SignatureMethod sign_method, std::string& privkey_file);
//bool VerifyQuery(const std::string query, const xmlSecKey *sender_public_key);
bool VerifyQuery(const std::string& query, const std::string& sender_cert_str);
std::string BuildDeflatedQuery(const XMLNode& node);
bool BuildNodefromMsg(const std::string& msg, XMLNode& node);
}// namespace Arc
#endif /* __ARC_SAMLUTIL_H__ */
|