#include <time.h>#include <errno.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <XrdCrypto/XrdCryptoX509Chain.hh>#include <XrdCrypto/XrdCryptosslAux.hh>#include <XrdCrypto/XrdCryptosslRSA.hh>#include <XrdCrypto/XrdCryptosslX509.hh>#include <XrdCrypto/XrdCryptosslTrace.hh>#include <openssl/pem.h>Go to the source code of this file.
Functions | |
| int | XrdCryptosslX509VerifyCB (int ok, X509_STORE_CTX *ctx) |
| int | XrdCryptosslKDFunLen () |
| int | XrdCryptosslKDFun (const char *pass, int plen, const char *salt, int slen, char *key, int klen) |
| bool | XrdCryptosslX509VerifyCert (XrdCryptoX509 *cert, XrdCryptoX509 *ref) |
| bool | XrdCryptosslX509VerifyChain (XrdCryptoX509Chain *chain, int &errcode) |
| XrdSutBucket * | XrdCryptosslX509ExportChain (XrdCryptoX509Chain *chain, bool withprivatekey) |
| int | XrdCryptosslX509ChainToFile (XrdCryptoX509Chain *ch, const char *fn) |
| int | XrdCryptosslX509ParseFile (const char *fname, XrdCryptoX509Chain *chain) |
| int | XrdCryptosslX509ParseBucket (XrdSutBucket *b, XrdCryptoX509Chain *chain) |
| int | XrdCryptosslASN1toUTC (ASN1_TIME *tsn1) |
Variables | |
| const char * | XrdCryptosslAuxCVSID = "$Id: XrdCryptosslAux.cc 35287 2010-09-14 21:19:35Z ganis $" |
| static int | gErrVerifyChain = 0 |
| 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 | klen | |||
| ) |
| int XrdCryptosslKDFunLen | ( | ) |
Definition at line 51 of file XrdCryptosslAux.cc.
References kSslKDFunDefLen.
Referenced by XrdCryptosslFactory::KDFunLen().
| int XrdCryptosslX509ChainToFile | ( | XrdCryptoX509Chain * | ch, | |
| 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 * | chain, | |
| bool | withprivatekey | |||
| ) |
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 * | chain | |||
| ) |
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 * | chain | |||
| ) |
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().
| int XrdCryptosslX509VerifyCB | ( | int | ok, | |
| X509_STORE_CTX * | ctx | |||
| ) |
| bool XrdCryptosslX509VerifyCert | ( | XrdCryptoX509 * | cert, | |
| XrdCryptoX509 * | ref | |||
| ) |
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().
int gErrVerifyChain = 0 [static] |
Definition at line 31 of file XrdCryptosslAux.cc.
Referenced by XrdCryptosslX509VerifyCB(), and XrdCryptosslX509VerifyChain().
| const char* XrdCryptosslAuxCVSID = "$Id: XrdCryptosslAux.cc 35287 2010-09-14 21:19:35Z ganis $" |
Definition at line 3 of file XrdCryptosslAux.cc.
1.5.1