|
|
|||
File indexing completed on 2026-01-08 10:33:32
0001 #ifndef __CRYPTO_AUX_H__ 0002 #define __CRYPTO_AUX_H__ 0003 /******************************************************************************/ 0004 /* */ 0005 /* X r d C r y p t o A u x . h h */ 0006 /* */ 0007 /* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */ 0008 /* Produced by Gerri Ganis for CERN */ 0009 /* */ 0010 /* This file is part of the XRootD software suite. */ 0011 /* */ 0012 /* XRootD is free software: you can redistribute it and/or modify it under */ 0013 /* the terms of the GNU Lesser General Public License as published by the */ 0014 /* Free Software Foundation, either version 3 of the License, or (at your */ 0015 /* option) any later version. */ 0016 /* */ 0017 /* XRootD is distributed in the hope that it will be useful, but WITHOUT */ 0018 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */ 0019 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */ 0020 /* License for more details. */ 0021 /* */ 0022 /* You should have received a copy of the GNU Lesser General Public License */ 0023 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */ 0024 /* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */ 0025 /* */ 0026 /* The copyright holder's institutional names and contributor's names may not */ 0027 /* be used to endorse or promote products derived from this software without */ 0028 /* specific prior written permission of the institution or contributor. */ 0029 /******************************************************************************/ 0030 0031 #include <cstdio> 0032 #include <ctime> 0033 #ifndef WIN32 0034 #include "XrdSys/XrdSysHeaders.hh" 0035 #endif 0036 #include "XProtocol/XProtocol.hh" 0037 0038 /******************************************************************************/ 0039 /* M i s c e l l a n e o u s D e f i n e s */ 0040 /******************************************************************************/ 0041 #define ABSTRACTMETHOD(x) {std::cerr <<"Method "<<x<<" must be overridden!" <<std::endl;} 0042 0043 /******************************************************************************/ 0044 /* E r r o r L o g g i n g / T r a c i n g F l a g s */ 0045 /******************************************************************************/ 0046 #define cryptoTRACE_ALL 0x0007 0047 #define cryptoTRACE_Dump 0x0004 0048 #define cryptoTRACE_Debug 0x0002 0049 #define cryptoTRACE_Notify 0x0001 0050 0051 // RSA parameters 0052 #define XrdCryptoMinRSABits 2048 0053 #define XrdCryptoDefRSABits 2048 0054 #define XrdCryptoDefRSAExp 0x10001 0055 0056 /******************************************************************************/ 0057 /* U t i l i t y F u n c t i o n s */ 0058 /******************************************************************************/ 0059 typedef int (*XrdCryptoKDFunLen_t)(); 0060 typedef int (*XrdCryptoKDFun_t)(const char *pass, int plen, 0061 const char *salt, int slen, 0062 char *key, int klen); 0063 int XrdCryptoKDFunLen(); 0064 int XrdCryptoKDFun(const char *pass, int plen, const char *salt, int slen, 0065 char *key, int klen); 0066 0067 0068 /******************************************************************************/ 0069 /* X r d C r y p t o S e t T r a c e */ 0070 /* */ 0071 /* Set trace flags according to 'trace' */ 0072 /* */ 0073 /******************************************************************************/ 0074 //______________________________________________________________________________ 0075 void XrdCryptoSetTrace(kXR_int32 trace); 0076 0077 0078 /******************************************************************************/ 0079 /* X r d C r y p t o T Z C o r r */ 0080 /* */ 0081 /* Time Zone correction (calculated once) */ 0082 /* */ 0083 /******************************************************************************/ 0084 //______________________________________________________________________________ 0085 time_t XrdCryptoTZCorr(); 0086 const time_t XrdCryptoDSTShift = 3600; 0087 0088 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|