00001 // OSB library ************************************************ -*- C++ -*- 00014 /* 00015 AUTHOR(S): Stephan Broennimann (vb) 00016 00017 RCS information 00018 $Name: OSB_060808 $ 00019 $Revision: 1.7 $ 00020 00021 License 00022 OSB rating and billing library for communication networks 00023 Copyright (C) 2004, 2005, 2006 OSB systems 00024 00025 This file may be distributed and/or modify under the terms of the 00026 GNU General Public License (GPL) as published by the Free Software 00027 Foundation which is provided in the file LICENSE.GPL included in the 00028 packaging of this file. 00029 00030 The file is distributed in the hope that it will be useful, but WITHOUT 00031 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00032 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00033 for more details. 00034 00035 Holders of a OSB Commercial License may use this file under the terms 00036 and conditions of this commercial license. 00037 */ 00038 #ifndef _OSBBTEA_H_ 00039 #define _OSBBTEA_H_ 00040 00041 // ************************************************************************ 00042 // included header files 00043 // + standard includes 00044 #include <string> 00045 00046 // + libraries 00047 00048 // + local headers 00049 00050 // + class declarations 00051 00052 // ************************************************************************ 00053 // namespace extensions 00054 namespace OSB_LIB { 00055 00056 // ************************************************************************ 00057 // free functions 00065 int pwCrypt(const std::string& src, std::string& dest); 00066 00075 int pwDecrypt(const std::string& src, std::string& dest); 00076 00084 int osbCrypt(const std::string& src, std::string& dest); 00085 00098 int osbDecrypt(const std::string& src, std::string& dest); 00099 } // namespace OSB_LIB 00100 #endif // #ifndef _OSBBTEA_H_