-
Notifications
You must be signed in to change notification settings - Fork 1
/
echo_mpserv.h
55 lines (46 loc) · 1.24 KB
/
echo_mpserv.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
#ifndef TLS13_ECHO_EHCO_MPSERV_H
#define TLS13_ECHO_EHCO_MPSERV_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <string.h>
#include <memory.h>
#include <errno.h>
#include <sys/types.h>
#include <netinet//in.h>
#include <netdb.h>
//#include <openssl/rsa.h>
//#include <openssl/crypto.h>
//#include <openssl/pem.h>
//#include <openssl/ssl.h>
//#include <openssl/err.h>
//#include <openssl/bio.h>
//#include "openssl/ssl/ssl_local.h"
//#include "openssl/e_os.h"
//#include "openssl/bio.h"
//#include "openssl/ssl.h"
//#include "openssl/err.h"
#include "/usr/local/include/openssl/bio.h"
#include "/usr/local/include/openssl/ssl.h"
#include "/usr/local/include/openssl/err.h"
//#include "../openssl/crypto.h"
//#include <openssl/X509.h>
//#include "../openssl/pem.h"
//#include "../openssl/ssl.h"
//#include "../openssl/err.h"
#define BUF_SIZE 100
void init_openssl();
SSL_CTX *create_context();
void set_context(SSL_CTX* ctx);
/*
* return : server socket fd;
*/
void keylog_callback(const SSL* ssl, const char *line);
int create_listen(int port);
void error_handling(char *message);
void read_childproc(int sig);
#endif //TLS13_ECHO_EHCO_MPSERV_H