Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

auth_lib.h

Go to the documentation of this file.
00001 #ifndef __AUTH_LIB_H
00002 #define __AUTH_LIB_H
00003 
00004 
00016 #include "socket_lib.h"
00017 #include <stdlib.h>
00018 #include <stdio.h>
00019 #include <unistd.h>
00020 #include <sys/types.h>
00021 #include <sys/stat.h>
00022 #include <fcntl.h>
00023 #include <openssl/rsa.h>
00024 #include <openssl/engine.h>
00025 #include <openssl/pem.h>
00026 #include <openssl/err.h>
00027 
00028 
00029 #define AUTH_VALID_MESSAGE "PASSED VERIFICATION"
00030 #define AUTH_INVALID_MESSAGE "FAILED VERIFICATION"
00031 #define AUTH_PUB_KEY_FILE_EXT ".pub"
00032 #define AUTH_MAX_ENCR_MESS_LEN 8.0
00033 #define AUTH_MAX_TEXT_LEN 257
00034 #define AUTH_MAX_MSG_LEN 65536
00035 #define AUTH_SOCK_TIMEOUT 10
00036 
00037 
00038 
00056 int auth_server(int sock, char *pub_key_dir);
00057 
00058 
00059 
00077 int auth_client(int sock, char *user_name, char *priv_key_file);
00078 
00079 
00083 #endif
00084 

Generated on Thu Dec 16 23:07:31 2004 for alsad by doxygen 1.3.6