Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Namespaces | Defines | Functions | Variables
MCCTLS.cpp File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <arc/credential/VOMSUtil.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/ssl.h>
#include <arc/message/PayloadStream.h>
#include <arc/message/PayloadRaw.h>
#include <arc/loader/Plugin.h>
#include <arc/message/MCCLoader.h>
#include <arc/XMLNode.h>
#include <arc/message/SecAttr.h>
#include <arc/crypto/OpenSSL.h>
#include "GlobusSigningPolicy.h"
#include "PayloadTLSStream.h"
#include "PayloadTLSMCC.h"
#include "DelegationCollector.h"
#include "MCCTLS.h"

Go to the source code of this file.

Classes

class  Arc::TLSSecAttr
class  MCC_TLS_Context

Namespaces

namespace  Arc
 ARCJSDLParser The ARCJSDLParser class, derived from the JobDescriptionParser class, is primarily a job description parser for the consolidated job description language (ARCJSDL), derived from JSDL, described in the following document http://svn.nordugrid.org/trac/nordugrid/browser/arc1/trunk/doc/tech_doc/client/job_description.odt.

Defines

#define SELFSIGNED(cert)   (X509_NAME_cmp(X509_get_issuer_name(cert),X509_get_subject_name(cert)) == 0)

Functions

static bool Arc::x509_to_string (X509 *cert, std::string &str)
static Arc::Pluginget_mcc_service (Arc::PluginArgument *arg)
static Arc::Pluginget_mcc_client (Arc::PluginArgument *arg)
static void add_arc_subject_attribute (XMLNode item, const std::string &subject, const char *id)
static void add_xacml_subject_attribute (XMLNode item, const std::string &subject, const char *id)

Variables

Arc::PluginDescriptor PLUGINS_TABLE_NAME []

Define Documentation

#define SELFSIGNED (   cert)    (X509_NAME_cmp(X509_get_issuer_name(cert),X509_get_subject_name(cert)) == 0)

Definition at line 116 of file MCCTLS.cpp.


Function Documentation

static void add_arc_subject_attribute ( XMLNode  item,
const std::string &  subject,
const char *  id 
) [static]

Definition at line 210 of file MCCTLS.cpp.

                                                                                            {
   XMLNode attr = item.NewChild("ra:SubjectAttribute");
   attr=subject; attr.NewAttribute("Type")="string";
   attr.NewAttribute("AttributeId")=id;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void add_xacml_subject_attribute ( XMLNode  item,
const std::string &  subject,
const char *  id 
) [static]

Definition at line 216 of file MCCTLS.cpp.

                                                                                              {
   XMLNode attr = item.NewChild("ra:Attribute");
   attr.NewAttribute("DataType")="xs:string";
   attr.NewAttribute("AttributeId")=id;
   attr.NewChild("ra:AttributeValue") = subject;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Arc::Plugin* get_mcc_client ( Arc::PluginArgument arg) [static]

Definition at line 99 of file MCCTLS.cpp.

                                                         {
    Arc::MCCPluginArgument* mccarg =
            arg?dynamic_cast<Arc::MCCPluginArgument*>(arg):NULL;
    if(!mccarg) return NULL;
    return new Arc::MCC_TLS_Client(*(Arc::Config*)(*mccarg));
}
static Arc::Plugin* get_mcc_service ( Arc::PluginArgument arg) [static]

Definition at line 92 of file MCCTLS.cpp.

                                                          {
    Arc::MCCPluginArgument* mccarg =
            arg?dynamic_cast<Arc::MCCPluginArgument*>(arg):NULL;
    if(!mccarg) return NULL;
    return new Arc::MCC_TLS_Service(*(Arc::Config*)(*mccarg));
}

Variable Documentation

Initial value:
 {
    { "tls.service", "HED:MCC", 0, &get_mcc_service },
    { "tls.client",  "HED:MCC", 0, &get_mcc_client  },
    { "delegation.collector", "HED:SHC", 0, &ArcSec::DelegationCollector::get_sechandler},
    { NULL, NULL, 0, NULL }
}

Definition at line 106 of file MCCTLS.cpp.