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 "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 87 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 58 of file XrdVomsFun.cc.

◆ VOMSDBG

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

Definition at line 61 of file XrdVomsFun.cc.

61#define VOMSDBG(m) \
62 if (gDebug) { \
63 PRINT(m); \
64 }

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 66 of file XrdVomsFun.cc.

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

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 73 of file XrdVomsFun.cc.

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

◆ 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 81 of file XrdVomsFun.cc.

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

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