#include <unistd.h>#include <ctype.h>#include <errno.h>#include <stdlib.h>#include <strings.h>#include <stdio.h>#include <sys/param.h>#include <pwd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <sys/times.h>#include "XrdSys/XrdSysHeaders.hh"#include <XrdSys/XrdSysLogger.hh>#include <XrdSys/XrdSysError.hh>#include <XrdOuc/XrdOucStream.hh>#include <XrdSys/XrdSysPriv.hh>#include <XrdSut/XrdSutCache.hh>#include <XrdSecpwd/XrdSecProtocolpwd.hh>#include <XrdSecpwd/XrdSecpwdPlatform.hh>Go to the source code of this file.
Functions | |
| static const char * | ClientStepStr (int kclt) |
| static const char * | ServerStepStr (int ksrv) |
| char * | XrdSecProtocolpwdInit (const char mode, const char *parms, XrdOucErrInfo *erp) |
| XrdSecProtocol * | XrdSecProtocolpwdObject (const char mode, const char *hostname, const struct sockaddr &netaddr, const char *parms, XrdOucErrInfo *erp) |
Variables | |
| static String | Prefix = "xrd" |
| static String | ProtoID = XrdSecPROTOIDENT |
| static const kXR_int32 | Version = XrdSecpwdVERSION |
| static String | AdminRef = ProtoID + "admin" |
| static String | SrvPukRef = ProtoID + "srvpuk" |
| static String | UserRef = ProtoID + "user" |
| static String | NetRcRef = ProtoID + "netrc" |
| static const char * | pwdClientSteps [] |
| static const char * | pwdServerSteps [] |
| static const char * | gPWErrStr [] |
| static const short | kOptsServer = 0x0001 |
| static const short | kOptsUserPwd = 0x0002 |
| static const short | kOptsAutoReg = 0x0004 |
| static const short | kOptsAregAll = 0x0008 |
| static const short | kOptsVeriSrv = 0x0020 |
| static const short | kOptsVeriClt = 0x0040 |
| static const short | kOptsClntTty = 0x0080 |
| static const short | kOptsExpCred = 0x0100 |
| static const short | kOptsCrypPwd = 0x0200 |
| static const short | kOptsChngPwd = 0x0400 |
| static const short | kOptsAFSPwd = 0x0800 |
| static const int | kOneDay = 86400 |
| static const char* ClientStepStr | ( | int | kclt | ) | [static] |
Definition at line 203 of file XrdSecProtocolpwd.cc.
References kXPC_normal, kXPC_reserved, and pwdClientSteps.
| static const char* ServerStepStr | ( | int | ksrv | ) | [static] |
Definition at line 219 of file XrdSecProtocolpwd.cc.
References kXPS_init, kXPS_reserved, and pwdServerSteps.
| char* XrdSecProtocolpwdInit | ( | const char | mode, | |
| const char * | parms, | |||
| XrdOucErrInfo * | erp | |||
| ) |
Definition at line 1577 of file XrdSecProtocolpwd.cc.
References XrdOucString::c_str(), debug, myOpts::debug, dir(), free(), getenv(), XrdOucTokenizer::GetLine(), XrdOucTokenizer::GetToken(), if(), XrdSecProtocolpwd::Init(), XrdOucString::length(), opts, strlcpy(), strtol(), and XrdSutParseTime().
| XrdSecProtocol* XrdSecProtocolpwdObject | ( | const char | mode, | |
| const char * | hostname, | |||
| const struct sockaddr & | netaddr, | |||
| const char * | parms, | |||
| XrdOucErrInfo * | erp | |||
| ) |
Definition at line 1775 of file XrdSecProtocolpwd.cc.
References XrdSecProtocolpwd::options, XrdOucErrInfo::setErrInfo(), XrdSecNOIPCHK, and XrdSecProtocolpwd::XrdSecProtocolpwd().
const char* gPWErrStr[] [static] |
const int kOneDay = 86400 [static] |
Definition at line 146 of file XrdSecProtocolpwd.cc.
const short kOptsAFSPwd = 0x0800 [static] |
Definition at line 144 of file XrdSecProtocolpwd.cc.
Referenced by XrdSecProtocolpwd::Authenticate().
const short kOptsAregAll = 0x0008 [static] |
Definition at line 137 of file XrdSecProtocolpwd.cc.
const short kOptsAutoReg = 0x0004 [static] |
Definition at line 136 of file XrdSecProtocolpwd.cc.
const short kOptsChngPwd = 0x0400 [static] |
Definition at line 143 of file XrdSecProtocolpwd.cc.
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
const short kOptsClntTty = 0x0080 [static] |
Definition at line 140 of file XrdSecProtocolpwd.cc.
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
const short kOptsCrypPwd = 0x0200 [static] |
Definition at line 142 of file XrdSecProtocolpwd.cc.
Referenced by XrdSecProtocolpwd::Authenticate().
const short kOptsExpCred = 0x0100 [static] |
Definition at line 141 of file XrdSecProtocolpwd.cc.
Referenced by XrdSecProtocolpwd::Authenticate().
const short kOptsServer = 0x0001 [static] |
Definition at line 134 of file XrdSecProtocolpwd.cc.
const short kOptsUserPwd = 0x0002 [static] |
Definition at line 135 of file XrdSecProtocolpwd.cc.
const short kOptsVeriClt = 0x0040 [static] |
Definition at line 139 of file XrdSecProtocolpwd.cc.
const short kOptsVeriSrv = 0x0020 [static] |
Definition at line 138 of file XrdSecProtocolpwd.cc.
Definition at line 61 of file XrdSecProtocolpwd.cc.
Definition at line 62 of file XrdSecProtocolpwd.cc.
const char* pwdClientSteps[] [static] |
Initial value:
{
"kXPC_none",
"kXPC_normal",
"kXPC_verifysrv",
"kXPC_signedrtag",
"kXPC_creds",
"kXPC_autoreg",
"kXPC_failureack",
"kXPC_reserved"
}
Definition at line 69 of file XrdSecProtocolpwd.cc.
Referenced by ClientStepStr().
const char* pwdServerSteps[] [static] |
Initial value:
{
"kXPS_none",
"kXPS_init",
"kXPS_credsreq",
"kXPS_rtag",
"kXPS_signedrtag",
"kXPS_newpuk",
"kXPS_puk",
"kXPS_failure",
"kXPS_reserved"
}
Definition at line 80 of file XrdSecProtocolpwd.cc.
Referenced by ServerStepStr().
Definition at line 63 of file XrdSecProtocolpwd.cc.
1.5.1