XRootD
Loading...
Searching...
No Matches
XrdVomsFun.cc File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include "XrdVoms.hh"
#include "XrdVomsFun.hh"
#include "XrdVomsTrace.hh"
#include "XrdVomsMapfile.hh"
#include "XrdCrypto/XrdCryptoX509.hh"
#include "XrdCrypto/XrdCryptoX509Chain.hh"
#include "XrdSec/XrdSecEntity.hh"
#include "XrdSys/XrdSysLogger.hh"
Include dependency graph for XrdVomsFun.cc:

Go to the source code of this file.

Macros

#define FATAL(x)
#define NTAG   9
#define SafeFree(x)
#define VOMSDBG(m)
#define VOMSDBGSUBJ(m, c)
#define VOMSREPLACE(a, f, e)
#define VOMSSPTTAB(a)

Macro Definition Documentation

◆ FATAL

#define FATAL ( x)
Value:
{std::cerr <<"VomsFun: "<<x<<std::endl; aOK = false;}

Definition at line 85 of file XrdVomsFun.cc.

◆ NTAG

#define NTAG   9

Referenced by XrdVomsFun::VOMSInit().

◆ SafeFree

#define SafeFree ( x)
Value:
{ if (x) free(x) ; x = 0; }

Definition at line 56 of file XrdVomsFun.cc.

◆ VOMSDBG

#define VOMSDBG ( m)
Value:
if (gDebug) { \
PRINT(m); \
}

Definition at line 59 of file XrdVomsFun.cc.

59#define VOMSDBG(m) \
60 if (gDebug) { \
61 PRINT(m); \
62 }

Referenced by XrdVomsFun::VOMSFun().

◆ VOMSDBGSUBJ

#define VOMSDBGSUBJ ( m,
c )
Value:
if (gDebug) { \
XrdOucString subject; \
NameOneLine(X509_get_subject_name(c), subject); \
PRINT(m << subject); \
}

Definition at line 64 of file XrdVomsFun.cc.

64#define VOMSDBGSUBJ(m, c) \
65 if (gDebug) { \
66 XrdOucString subject; \
67 NameOneLine(X509_get_subject_name(c), subject); \
68 PRINT(m << subject); \
69 }

Referenced by XrdVomsFun::VOMSFun().

◆ VOMSREPLACE

#define VOMSREPLACE ( a,
f,
e )
Value:
if (a.length() > 0) { \
f.replace("<g>", e.grps); \
f.replace("<r>", e.role); \
f.replace("<vo>", e.vorg); \
f.replace("<an>", e.endorsements); \
}

Definition at line 71 of file XrdVomsFun.cc.

71#define VOMSREPLACE(a, f, e) \
72 if (a.length() > 0) { \
73 f.replace("<g>", e.grps); \
74 f.replace("<r>", e.role); \
75 f.replace("<vo>", e.vorg); \
76 f.replace("<an>", e.endorsements); \
77 }

◆ VOMSSPTTAB

#define VOMSSPTTAB ( a)
Value:
if (a.length() > 0) { \
int sp = -1; \
while ((sp = a.find(' ', sp+1)) != STR_NPOS) { a[sp] = '\t'; } \
}
#define STR_NPOS

Definition at line 79 of file XrdVomsFun.cc.

79#define VOMSSPTTAB(a) \
80 if (a.length() > 0) { \
81 int sp = -1; \
82 while ((sp = a.find(' ', sp+1)) != STR_NPOS) { a[sp] = '\t'; } \
83 }

Referenced by XrdVomsFun::VOMSFun(), and XrdVomsFun::VOMSInit().