-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.h
55 lines (43 loc) · 963 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* common.h
*
* Created on: Apr 25, 2015
* Author: nasm
*/
#ifndef COMMON_H_
#define COMMON_H_
#define MAX_NETWORK_SIZE 4096
typedef unsigned int u_int;
typedef unsigned char * P_USTR;
typedef unsigned char USTR;
typedef char* P_STR;
typedef char STR;
#define TRUE 1
#define FALSE 0
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h> /* close */
#include <netdb.h> /* gethostbyname */
#include <sys/stat.h>
#include <netinet/in.h>
#include <openssl/rsa.h>
#include <openssl/engine.h>
#include <openssl/pem.h>
#include <openssl/bio.h>
#include "debug.h"
#include "CLIENT/client.h"
#include "ERROR/error.h"
#include "NET/socket.h"
#include "NET/query.h"
#include "SHA/sha.h"
#include "FILE/file.h"
#include "RSA/rsa.h"
#include "AES/aes.h"
#include "CERTIFICAT/certificat.h"
#endif /* COMMON_H_ */