XrdCryptosslAux.hh File Reference

#include <XrdCrypto/XrdCryptoAux.hh>
#include <XrdCrypto/XrdCryptoX509Chain.hh>
#include <openssl/asn1.h>

Go to the source code of this file.

Defines

#define kSslKDFunDefLen   24
#define sslTRACE_ALL   0x0007
#define sslTRACE_Dump   0x0004
#define sslTRACE_Debug   0x0002
#define sslTRACE_Notify   0x0001

Functions

int XrdCryptosslKDFunLen ()
int XrdCryptosslKDFun (const char *pass, int plen, const char *salt, int slen, char *key, int len)
bool XrdCryptosslX509VerifyCert (XrdCryptoX509 *c, XrdCryptoX509 *r)
bool XrdCryptosslX509VerifyChain (XrdCryptoX509Chain *chain, int &errcode)
XrdSutBucketXrdCryptosslX509ExportChain (XrdCryptoX509Chain *c, bool key=0)
int XrdCryptosslX509ChainToFile (XrdCryptoX509Chain *c, const char *fn)
int XrdCryptosslX509ParseFile (const char *fname, XrdCryptoX509Chain *c)
int XrdCryptosslX509ParseBucket (XrdSutBucket *b, XrdCryptoX509Chain *c)
int XrdCryptosslASN1toUTC (ASN1_TIME *tsn1)


Define Documentation

#define kSslKDFunDefLen   24

Definition at line 24 of file XrdCryptosslAux.hh.

Referenced by XrdCryptosslKDFunLen().

#define sslTRACE_ALL   0x0007

Definition at line 52 of file XrdCryptosslAux.hh.

Referenced by XrdCryptosslFactory::SetTrace().

#define sslTRACE_Debug   0x0002

Definition at line 54 of file XrdCryptosslAux.hh.

Referenced by XrdCryptosslFactory::SetTrace().

#define sslTRACE_Dump   0x0004

Definition at line 53 of file XrdCryptosslAux.hh.

Referenced by XrdCryptosslFactory::SetTrace().

#define sslTRACE_Notify   0x0001

Definition at line 55 of file XrdCryptosslAux.hh.

Referenced by XrdCryptosslFactory::SetTrace().


Function Documentation

int XrdCryptosslASN1toUTC ( ASN1_TIME *  tsn1  ) 

Definition at line 582 of file XrdCryptosslAux.cc.

References gmtime_r, int, and localtime_r.

Referenced by XrdCryptosslX509Crl::LastUpdate(), XrdCryptosslX509Crl::LoadCache(), XrdCryptosslX509Crl::NextUpdate(), XrdCryptosslX509::NotAfter(), XrdCryptosslX509::NotBefore(), and XrdSslgsiX509CreateProxy().

int XrdCryptosslKDFun ( const char *  pass,
int  plen,
const char *  salt,
int  slen,
char *  key,
int  len 
)

Definition at line 58 of file XrdCryptosslAux.cc.

References int, and strtol().

Referenced by XrdCryptosslFactory::KDFun().

int XrdCryptosslKDFunLen (  ) 

Definition at line 51 of file XrdCryptosslAux.cc.

References kSslKDFunDefLen.

Referenced by XrdCryptosslFactory::KDFunLen().

int XrdCryptosslX509ChainToFile ( XrdCryptoX509Chain c,
const char *  fn 
)

Definition at line 266 of file XrdCryptosslAux.cc.

References c, DEBUG, XrdCryptoX509Chain::End(), EPNAME, fchmod(), fclose(), fopen, fp, XrdSutFileLocker::IsValid(), k, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdSutFileLocker::kExcl, XrdCryptoX509Chain::Reorder(), and XrdCryptoX509Chain::SearchBySubject().

Referenced by XrdCryptosslFactory::X509ChainToFile().

XrdSutBucket* XrdCryptosslX509ExportChain ( XrdCryptoX509Chain c,
bool  key = 0 
)

Definition at line 173 of file XrdCryptosslAux.cc.

References c, chain, DEBUG, EPNAME, k, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, kXRS_x509, XrdSutBucket::SetBuf(), and XrdSutBucket::size.

Referenced by XrdSecProtocolgsi::Authenticate(), XrdSecProtocolgsi::QueryGMAP(), and XrdCryptosslFactory::X509ExportChain().

int XrdCryptosslX509ParseBucket ( XrdSutBucket b,
XrdCryptoX509Chain c 
)

Definition at line 464 of file XrdCryptosslAux.cc.

References b, c, chain, DEBUG, EPNAME, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, ok, XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509::SetPKI(), XrdCryptoRSA::status, and XrdCryptoX509::type.

Referenced by XrdCryptosslFactory::X509ParseBucket().

int XrdCryptosslX509ParseFile ( const char *  fname,
XrdCryptoX509Chain c 
)

Definition at line 346 of file XrdCryptosslAux.cc.

References c, chain, DEBUG, EPNAME, fclose(), fopen, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, ok, XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509::SetPKI(), XrdCryptoRSA::status, and XrdCryptoX509::type.

Referenced by XrdCryptosslFactory::X509ParseFile().

bool XrdCryptosslX509VerifyCert ( XrdCryptoX509 c,
XrdCryptoX509 r 
)

Definition at line 94 of file XrdCryptosslAux.cc.

References c, and XrdCryptoX509::Opaque().

Referenced by XrdCryptosslFactory::X509VerifyCert().

bool XrdCryptosslX509VerifyChain ( XrdCryptoX509Chain chain,
int &  errcode 
)

Definition at line 109 of file XrdCryptosslAux.cc.

References chain, gErrVerifyChain, XrdCryptoX509::kCA, XrdCryptoX509::Opaque(), and XrdCryptoX509::type.

Referenced by XrdCryptosslFactory::X509VerifyChain().


Generated on Tue Jul 5 16:08:06 2011 for ROOT_528-00b_version by  doxygen 1.5.1