Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.13 - (show annotations) (download) (as text)
Sat Jan 22 05:38:03 2005 UTC (19 years, 2 months ago) by youi
Branch: MAIN
CVS Tags: demo20050128
Changes since 1.12: +7 -1 lines
File MIME type: text/x-chdr
md5strを定義した.

1 /*
2 * $Revision: 1.12 $
3 */
4 #if !defined( COMMON_H )
5 #define COMMON_H
6
7 #include <openssl/md5.h>
8 #include<string>
9
10 using namespace std;
11 typedef enum {
12 RES_OK = 0,
13 RES_ERROR,
14 RES_DB_NOT_INITIALIZED,
15 RES_LOGIN_FAILURE,
16 RES_NO_SUCH_SESSION,
17 RES_NO_SUCH_USER,
18 RES_NO_SUCH_GROUP,
19 RES_DB_QUERY_ERROR,
20 RES_DB_CONNECT_ERROR,
21 RES_DB_INITIALIZE_ERROR,
22 RES_NO_SUCH_ITEM,
23 RES_NO_WRITE_ACCESS_RIGHT,
24 RES_NO_READ_ACCESS_RIGHT,
25
26 RES_PHP_NONREF=1000
27 } result_t;
28
29 char* str_dup( const char* );
30 char* setValue( char** , const char* );
31 string intToString( int i );
32 string unsignedIntToString( unsigned int i );
33
34 #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH*2+1)
35
36 char* md5str( char str[MD5_DIGEST_STRING_LENGTH], unsigned char* data, int len );
37
38 #endif
39
40

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26