#include <ctime>#include <cerrno>#include <cstdlib>#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 "XrdTls/XrdTlsPeerCerts.hh"#include <openssl/pem.h>Go to the source code of this file.
Variables | |
| static int | gErrVerifyChain = 0 |
| XrdOucTrace * | sslTrace = 0 |
| time_t XrdCryptosslASN1toUTC | ( | const ASN1_TIME * | tsn1 | ) |
Definition at line 675 of file XrdCryptosslAux.cc.
References XrdCryptoTZCorr().
Referenced by XrdCryptosslX509Crl::LastUpdate(), XrdCryptosslX509Crl::NextUpdate(), XrdCryptosslX509::NotAfter(), and XrdCryptosslX509::NotBefore().
| int XrdCryptosslKDFun | ( | const char * | pass, |
| int | plen, | ||
| const char * | salt, | ||
| int | slen, | ||
| char * | key, | ||
| int | klen ) |
Definition at line 78 of file XrdCryptosslAux.cc.
Referenced by XrdCryptosslFactory::KDFun().
| int XrdCryptosslKDFunLen | ( | ) |
Definition at line 71 of file XrdCryptosslAux.cc.
References kSslKDFunDefLen.
Referenced by XrdCryptosslFactory::KDFunLen().
| void XrdCryptosslNameOneLine | ( | X509_NAME * | nm, |
| XrdOucString & | s ) |
Definition at line 736 of file XrdCryptosslAux.cc.
References XrdOucString::insert(), and XrdOucString::replace().
Referenced by XrdCryptosslX509::Issuer(), XrdCryptosslX509Crl::Issuer(), XrdCryptosslX509::Subject(), and XrdCryptosslX509Req::Subject().
| int XrdCryptosslX509ChainToFile | ( | XrdCryptoX509Chain * | ch, |
| const char * | fn ) |
Definition at line 307 of file XrdCryptosslAux.cc.
References DEBUG, XrdCryptoX509Chain::End(), EPNAME, fclose(), fopen, XrdCryptoX509::Issuer(), XrdSutFileLocker::IsValid(), XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdSutFileLocker::kExcl, XrdCryptoRSA::Opaque(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::Reorder(), XrdCryptoX509Chain::SearchBySubject(), XrdCryptoRSA::status, and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509ChainToFile().
| XrdSutBucket * XrdCryptosslX509ExportChain | ( | XrdCryptoX509Chain * | chain, |
| bool | withprivatekey ) |
Definition at line 194 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), DEBUG, XrdCryptoX509Chain::End(), EPNAME, XrdCryptoX509::Issuer(), XrdCryptoX509::IssuerHash(), XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, kXRS_x509, XrdCryptoRSA::Opaque(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::Reorder(), XrdCryptoX509Chain::SearchBySubject(), XrdSutBucket::SetBuf(), XrdCryptoX509Chain::Size(), XrdSutBucket::size, XrdCryptoRSA::status, XrdCryptoX509::Subject(), XrdCryptoX509::SubjectHash(), and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509ExportChain().
| int XrdCryptosslX509ParseBucket | ( | XrdSutBucket * | b, |
| XrdCryptoX509Chain * | chain ) |
Definition at line 567 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), XrdSutBucket::buffer, DEBUG, EPNAME, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdCryptoX509Chain::Next(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::PushBack(), XrdCryptoX509::SetPKI(), XrdCryptoX509Chain::Size(), XrdSutBucket::size, XrdCryptoRSA::status, and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509ParseBucket(), and XrdSecgsiAuthzKey().
| int XrdCryptosslX509ParseFile | ( | const char * | fname, |
| XrdCryptoX509Chain * | chain, | ||
| const char * | fkey ) |
Definition at line 436 of file XrdCryptosslAux.cc.
References DEBUG, EPNAME, fclose(), fopen, and XrdCryptosslX509ParseFile().
Referenced by XrdCryptosslFactory::X509ParseFile(), and XrdCryptosslX509ParseFile().
| int XrdCryptosslX509ParseFile | ( | FILE * | fcer, |
| XrdCryptoX509Chain * | chain, | ||
| const char * | fname, | ||
| const char * | fkey ) |
Definition at line 456 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), DEBUG, EPNAME, fclose(), fopen, XrdCryptoX509::kCA, XrdCryptoRSA::kComplete, XrdCryptoX509Chain::Next(), XrdCryptoX509::Opaque(), XrdCryptoX509::PKI(), XrdCryptoX509Chain::PushBack(), XrdCryptoX509::SetPKI(), XrdCryptoX509Chain::Size(), XrdCryptoRSA::status, XrdCryptoX509::Subject(), and XrdCryptoX509::type.
| int XrdCryptosslX509ParseStack | ( | XrdTlsPeerCerts * | pc, |
| XrdCryptoX509Chain * | chain ) |
Definition at line 387 of file XrdCryptosslAux.cc.
References DEBUG, EPNAME, XrdTlsPeerCerts::getCert(), XrdTlsPeerCerts::hasCert(), XrdTlsPeerCerts::hasChain(), XrdCryptoX509Chain::PushBack(), and XrdCryptoX509Chain::Reorder().
Referenced by XrdCryptosslFactory::X509ParseStack().
| int XrdCryptosslX509ToFile | ( | XrdCryptoX509 * | x509, |
| FILE * | file, | ||
| const char * | fname ) |
Definition at line 287 of file XrdCryptosslAux.cc.
References DEBUG, EPNAME, and XrdCryptoX509::Opaque().
| int XrdCryptosslX509VerifyCB | ( | int | ok, |
| X509_STORE_CTX * | ctx ) |
Definition at line 53 of file XrdCryptosslAux.cc.
References gErrVerifyChain.
| bool XrdCryptosslX509VerifyCert | ( | XrdCryptoX509 * | cert, |
| XrdCryptoX509 * | ref ) |
Definition at line 114 of file XrdCryptosslAux.cc.
References XrdCryptoX509::Opaque().
Referenced by XrdCryptosslFactory::X509VerifyCert().
| bool XrdCryptosslX509VerifyChain | ( | XrdCryptoX509Chain * | chain, |
| int & | errcode ) |
Definition at line 129 of file XrdCryptosslAux.cc.
References XrdCryptoX509Chain::Begin(), gErrVerifyChain, XrdCryptoX509::kCA, XrdCryptoX509Chain::Next(), XrdCryptoX509::Opaque(), XrdCryptoX509Chain::Size(), and XrdCryptoX509::type.
Referenced by XrdCryptosslFactory::X509VerifyChain().
|
static |
Definition at line 49 of file XrdCryptosslAux.cc.
Referenced by XrdCryptosslX509VerifyCB(), and XrdCryptosslX509VerifyChain().
| XrdOucTrace* sslTrace = 0 |
Definition at line 50 of file XrdCryptosslAux.cc.
Referenced by XrdCryptosslFactory::SetTrace().