xrootd
XrdCryptosslAux.hh
Go to the documentation of this file.
1 // $Id$
2 #ifndef __CRYPTO_SSLAUX_H__
3 #define __CRYPTO_SSLAUX_H__
4 /******************************************************************************/
5 /* */
6 /* X r d C r y p t o S s l A u x . h h */
7 /* */
8 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
9 /* All Rights Reserved. See XrdInfo.cc for complete License Terms */
10 /* Produced by Andrew Hanushevsky for Stanford University under contract */
11 /* DE-AC03-76-SFO0515 with the Department of Energy */
12 /******************************************************************************/
13 
14 /* ************************************************************************** */
15 /* */
16 /* OpenSSL utility functions */
17 /* */
18 /* ************************************************************************** */
19 
22 #include <openssl/asn1.h>
23 
24 #define kSslKDFunDefLen 24
25 
26 //
27 // Password-Based Key Derivation Function 2, specified in PKCS #5
28 //
29 int XrdCryptosslKDFunLen(); // default buffer length
30 int XrdCryptosslKDFun(const char *pass, int plen, const char *salt, int slen,
31  char *key, int len);
32 //
33 // X509 manipulation: certificate verification
35 // chain verification
36 bool XrdCryptosslX509VerifyChain(XrdCryptoX509Chain *chain, int &errcode);
37 // chain export to bucket
39 // chain export to file (proxy file creation)
40 int XrdCryptosslX509ChainToFile(XrdCryptoX509Chain *c, const char *fn);
41 // certificates from file parsing
42 int XrdCryptosslX509ParseFile(const char *fname, XrdCryptoX509Chain *c);
43 // certificates from bucket parsing
45 //
46 // Function to convert from ASN1 time format into UTC since Epoch (Jan 1, 1970)
47 int XrdCryptosslASN1toUTC(ASN1_TIME *tsn1);
48 
49 /******************************************************************************/
50 /* E r r o r L o g g i n g / T r a c i n g F l a g s */
51 /******************************************************************************/
52 #define sslTRACE_ALL 0x0007
53 #define sslTRACE_Dump 0x0004
54 #define sslTRACE_Debug 0x0002
55 #define sslTRACE_Notify 0x0001
56 
57 #endif
58