|
XRootD
|
#include <iostream>#include "XrdVersion.hh"#include "XProtocol/XProtocol.hh"#include "XrdOuc/XrdOucPinLoader.hh"#include "XrdSec/XrdSecLoadSecurity.hh"#include "XrdSec/XrdSecProtector.hh"#include "XrdSys/XrdSysError.hh"#include "XrdSys/XrdSysPlatform.hh"#include "XrdSys/XrdSysPthread.hh"
Include dependency graph for XrdSecLoadSecurity.cc:Go to the source code of this file.
Namespaces | |
| namespace | XrdSecProtection |
Functions | |
| int | XrdSecGetProtection (XrdSecProtect *&protP, XrdSecProtocol &aprot, ServerResponseBody_Protocol &resp, unsigned int resplen) |
| XrdSecProtector * | XrdSecLoadProtection (XrdSysError &erP) |
| XrdSecGetProt_t | XrdSecLoadSecFactory (char *eBuff, int eBlen, const char *seclib) |
| XrdSecService * | XrdSecLoadSecService (XrdSysError *eDest, const char *cfn, const char *seclib, XrdSecGetProt_t *getP, XrdSecProtector **proP) |
Variables | |
| int | XrdSecProtection::protRC = 0 |
| XrdSecProtector * | XrdSecProtection::theProtector = 0 |
| int XrdSecGetProtection | ( | XrdSecProtect *& | protP, |
| XrdSecProtocol & | aprot, | ||
| ServerResponseBody_Protocol & | resp, | ||
| unsigned int | resplen | ||
| ) |
Obtain an instance of a security protection object based on the kXR_protocol response. This is only used client-side.
| protP | Place where the protection object point is placed. |
| aprot | Uses the authentication protocol to protect requests. It must be supplied and must be he protocol the client used for authentication. Hence, authentication must occur first. |
| resp | Reference to the response body returned by kXR_protocol. |
| resplen | Length of the response body. |
Definition at line 206 of file XrdSecLoadSecurity.cc.
References kXR_secNone, kXR_ShortProtRespLen, XrdSecProtector::New4Client(), XrdSecProtection::protRC, ServerResponseReqs_Protocol::seclvl, ServerResponseBody_Protocol::secreq, ServerResponseReqs_Protocol::secvsz, and XrdSecProtection::theProtector.
Here is the call graph for this function:| XrdSecProtector * XrdSecLoadProtection | ( | XrdSysError & | erP | ) |
Definition at line 262 of file XrdSecLoadSecurity.cc.
References XrdSecProtection::protRC, and XrdSecProtection::theProtector.
Referenced by XrdSecServer::Configure().
Here is the caller graph for this function:| XrdSecGetProt_t XrdSecLoadSecFactory | ( | char * | eBuff, |
| int | eBlen, | ||
| const char * | seclib = 0 |
||
| ) |
This include file defines utility functions that load the security framework plugin specialized for server-side or client-side use. These functions are public and remain ABI stable! Load the Security Protocol Factory (used client-side)
| eBuff | Pointer to a buffer tat is to receive any messages. Upon failure it will contain an eror message. Upon success it will contain an informational message that describes the version that was loaded. |
| eBlen | The length of the eBuff, it should be at least 1K to avoid message truncation as the message may have a path. |
| seclib | Pointer to the shared library path that contains the framework implementation. If a nill pointer is passed, then the default library is used. |
Definition at line 176 of file XrdSecLoadSecurity.cc.
| XrdSecService * XrdSecLoadSecService | ( | XrdSysError * | eDest, |
| const char * | cfn, | ||
| const char * | seclib, | ||
| XrdSecGetProt_t * | getP, | ||
| XrdSecProtector ** | proP | ||
| ) |
Definition at line 278 of file XrdSecLoadSecurity.cc.
References eDest, and XrdSecProtection::theProtector.
Referenced by XrdCmsSecurity::Configure().
Here is the caller graph for this function: