#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <strings.h>
#include <stdio.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/param.h>
#include <sys/socket.h>
#include "XrdOuc/XrdOucErrInfo.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSec/XrdSecInterface.hh"
Classes |
struct | myOpts |
Defines |
#define | H(x) fprintf(stderr,x); fprintf(stderr, "\n"); |
#define | I(x) fprintf(stderr, "\n"); H(x) |
#define | insx(a, b) sprintf(errbuff,a,b) |
#define | insy(a, b, c) sprintf(errbuff,a,b,c) |
Typedefs |
typedef unsigned char | uchar |
Functions |
int | getbintix (uchar *buff, int blen) |
void | getargs (int argc, char **argv) |
int | unhex (uchar *ibuff, uchar *obuff, int blen) |
int | cvtx (uchar idig, uchar *odig) |
void | getline (uchar *buff, int blen) |
char * | Ereason () |
int | emsg (int rc, char *msg) |
void | help (int rc) |
void | xerr (int x) |
int | main (int argc, char **argv) |
Variables |
const char * | XrdSectestServerCVSID = "$Id$" |
struct myOpts | opts |
char | errbuff [256] |
char | hexbuff [256] |
Define Documentation
#define H |
( |
|
x | ) |
fprintf(stderr,x); fprintf(stderr, "\n"); |
#define I |
( |
|
x | ) |
fprintf(stderr, "\n"); H(x) |
#define insx |
( |
|
a, |
|
|
|
b |
|
) |
| sprintf(errbuff,a,b) |
#define insy |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| sprintf(errbuff,a,b,c) |
Typedef Documentation
typedef unsigned char uchar |
Function Documentation
int emsg |
( |
int |
rc, |
|
|
char * |
msg |
|
) |
| |
void getargs |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
References myOpts::bin, myOpts::cfn, myOpts::debug, emsg(), Ereason(), fopen, help(), myOpts::host, myOpts::infid, myOpts::inpt, insx, insy, myOpts::online, optarg, optind, opts, xerr(), and myOpts::xtra.
Referenced by main().
int getbintix |
( |
uchar * |
buff, |
|
|
int |
blen |
|
) |
| |
void getline |
( |
uchar * |
buff, |
|
|
int |
blen |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
References XrdSecProtocol::Authenticate(), myOpts::bin, XrdSecBuffer::buffer, myOpts::cfn, emsg(), XrdSecProtocol::Entity, getargs(), getbintix(), XrdOucErrInfo::getErrInfo(), XrdOucErrInfo::getErrText(), getline(), XrdSecService::getParms(), XrdSecService::getProtocol(), XrdSecEntity::host, myOpts::host, myOpts::inpt, XrdMpx::Logger, XrdSecEntity::name, myOpts::online, opts, XrdSecEntity::prot, XrdSecBuffer::size, unhex(), and XrdSecgetService().
int unhex |
( |
uchar * |
ibuff, |
|
|
uchar * |
obuff, |
|
|
int |
blen |
|
) |
| |
Variable Documentation
Referenced by XrdFrmAdmin::AuditNames(), XrdNet::Bind(), XrdSecProtocolgsi::ClientDoInit(), XrdXrootdProtocol::do_Locate(), XrdXrootdProtocol::do_Open(), XrdXrootdProtocol::do_Prepare(), XrdCmsNode::do_Select(), XrdCmsNode::do_SelPrep(), executePrepare(), XrdFrmAdmin::FindFail(), XrdFrmAdmin::FindMmap(), XrdFrmAdmin::FindNolk(), XrdFrmAdmin::FindPins(), XrdFrmAdmin::FindUnmi(), getargs(), getbintix(), getline(), XrdCmsFinderTRG::Hookup(), XrdCmsClientMan::Hookup(), XrdOssSpace::Init(), XrdClientAdmin::LocalLocate(), main(), XrdOssMio::Map(), XrdFrmAdmin::mkLock(), XrdFrmAdmin::mkMark(), XrdFrmAdmin::mkMmap(), XrdFrmAdmin::mkPin(), XrdSecProtocolpwd::ParseClientInput(), XrdSecProtocolpwd::ParseCrypto(), XrdFrmAdmin::QuerySpace(), XrdOssSys::Remdir(), XrdSecProtocolkrb5::setClientOpts(), XrdAccGroups::SetOptions(), XrdSecProtocolsss::setOpts(), XrdSecProtocolkrb5::setOpts(), XrdSecProtocolkrb4::setOpts(), XrdOucNSWalk::XrdOucNSWalk(), XrdSecProtocolgsi::XrdSecProtocolgsi(), XrdSecProtocolgsiInit(), XrdSecProtocolkrb5Init(), XrdSecProtocolpwd::XrdSecProtocolpwd(), XrdSecProtocolpwdInit(), and XrdSutBuffer::XrdSutBuffer().