-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbartlby_agent.h
63 lines (45 loc) · 1018 Bytes
/
bartlby_agent.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
56
57
58
59
60
61
#include "config.h"
///*** asprintf on clang */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifndef __APPLE__
#include <malloc.h>
#endif
#include <stdio.h>
#include <syslog.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <time.h>
#include <getopt.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <netdb.h>
#include <json.h>
#ifdef HAVE_SSL
#include <openssl/dh.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#endif
//SSL
DH *get_dh512();
//COMPAT
#ifdef NEEDS_JSON_GET_EX
int json_object_object_get_ex(struct json_object* jso, const char *key, struct json_object **value);
#endif
#ifdef NEEDS_JSON_INT64
struct json_object* json_object_new_int64(int64_t i);
int64_t json_object_get_int64(struct json_object *obj);
#endif