diff --git erts/emulator/beam/global.h erts/emulator/beam/global.h
index 62a788c..87e83e3 100644
|
|
void erts_bif_trace_init(void); |
1658 | 1658 | /* |
1659 | 1659 | ** Call_trace uses this API for the parameter matching functions |
1660 | 1660 | */ |
1661 | | struct erl_heap_fragment* saved_program_buf; |
| 1661 | /* struct erl_heap_fragment* saved_program_buf; */ |
1662 | 1662 | |
1663 | 1663 | #define MatchSetRef(MPSP) \ |
1664 | 1664 | do { \ |
diff --git lib/erl_interface/src/misc/ei_internal.h lib/erl_interface/src/misc/ei_internal.h
index 9f51d1f..f7805ef 100644
|
|
|
149 | 149 | {if (ei_tracelevel >= 5) ei_trace_printf(NAME,1,FORMAT,ARG1,ARG2,ARG3,ARG4, \ |
150 | 150 | ARG5,ARG6,ARG7);} |
151 | 151 | |
152 | | int ei_tracelevel; |
| 152 | extern int ei_tracelevel; |
153 | 153 | |
154 | 154 | void ei_trace_printf(const char *name, int level, const char *format, ...); |
155 | 155 | |
diff --git lib/ssl/c_src/debuglog.h lib/ssl/c_src/debuglog.h
index 5699e6b..e98b3fe 100644
|
|
|
34 | 34 | #define SSLDEBUGF() if (debug) { esock_ssl_print_errors_fp(stderr); \ |
35 | 35 | if (ssllogfp) esock_ssl_print_errors_fp(ssllogfp); } |
36 | 36 | |
37 | | int debug; |
38 | | int debugmsg; |
39 | | FILE *ssllogfp; |
40 | | FILE *__locallogfp; |
| 37 | extern int debug; |
| 38 | extern int debugmsg; |
| 39 | extern FILE *ssllogfp; |
| 40 | extern FILE *__locallogfp; |
41 | 41 | |
42 | | void open_ssllog(char *path); |
43 | | void close_ssllog(void); |
44 | | FILE *openlog(char *); |
45 | | void closelog(FILE *); |
46 | | int __debugprintf(const char *, ...); |
47 | | int __debugprintclistf(const char *, ...); |
48 | | int __debuglogf(const char *, ...); |
| 42 | extern void open_ssllog(char *path); |
| 43 | extern void close_ssllog(void); |
| 44 | extern FILE *openlog(char *); |
| 45 | extern void closelog(FILE *); |
| 46 | extern int __debugprintf(const char *, ...); |
| 47 | extern int __debugprintclistf(const char *, ...); |
| 48 | extern int __debuglogf(const char *, ...); |
49 | 49 | |
50 | 50 | #endif |
diff --git lib/ssl/c_src/esock_ssl.h lib/ssl/c_src/esock_ssl.h
index 535e9a6..ac2dd09 100644
|
|
typedef struct { |
34 | 34 | } esock_version; |
35 | 35 | |
36 | 36 | /* Variables to be set by certain functions (see below) */ |
37 | | char *esock_ssl_errstr; |
| 37 | extern char *esock_ssl_errstr; |
38 | 38 | |
39 | 39 | /* Ephemeral RSA and DH */ |
40 | | int ephemeral_rsa, ephemeral_dh; |
| 40 | extern int ephemeral_rsa, ephemeral_dh; |
41 | 41 | |
42 | 42 | /* Protocol version (sslv2, sslv3, tlsv1) */ |
43 | | int protocol_version; |
| 43 | extern int protocol_version; |
44 | 44 | |
45 | 45 | /* version info */ |
46 | | esock_version *esock_ssl_version(void); |
| 46 | extern esock_version *esock_ssl_version(void); |
47 | 47 | |
48 | 48 | /* ciphers info */ |
49 | | char *esock_ssl_ciphers(void); |
| 49 | extern char *esock_ssl_ciphers(void); |
50 | 50 | |
51 | 51 | /* seeding */ |
52 | | void esock_ssl_seed(void *buf, int len); |
| 52 | extern void esock_ssl_seed(void *buf, int len); |
53 | 53 | |
54 | 54 | /* Initialization and finalization of SSL */ |
55 | 55 | |
56 | | int esock_ssl_init(void); |
57 | | void esock_ssl_finish(void); |
| 56 | extern int esock_ssl_init(void); |
| 57 | extern void esock_ssl_finish(void); |
58 | 58 | |
59 | 59 | /* Freeing of SSL resources for a connection */ |
60 | 60 | |
61 | | void esock_ssl_free(Connection *cp); |
| 61 | extern void esock_ssl_free(Connection *cp); |
62 | 62 | |
63 | 63 | /* Print error diagnostics to a file pointer */ |
64 | 64 | |
65 | | void esock_ssl_print_errors_fp(FILE *fp); |
| 65 | extern void esock_ssl_print_errors_fp(FILE *fp); |
66 | 66 | |
67 | 67 | /* All functions below have to return >= 0 on success, and < 0 on |
68 | 68 | * failure. |
… |
… |
void esock_ssl_print_errors_fp(FILE *fp); |
76 | 76 | * short diagnostic string describing the error. |
77 | 77 | */ |
78 | 78 | |
79 | | int esock_ssl_accept_init(Connection *cp, void *listenssl); |
80 | | int esock_ssl_connect_init(Connection *cp); |
81 | | int esock_ssl_listen_init(Connection *cp); |
| 79 | extern int esock_ssl_accept_init(Connection *cp, void *listenssl); |
| 80 | extern int esock_ssl_connect_init(Connection *cp); |
| 81 | extern int esock_ssl_listen_init(Connection *cp); |
82 | 82 | |
83 | 83 | /* All functions below may involve non-blocking I/O with a temporary |
84 | 84 | * failure. Hence they have to have the error context set to |
… |
… |
int esock_ssl_listen_init(Connection *cp); |
87 | 87 | * value is 0, cp->eof and cp->bp are set, if appropritate. |
88 | 88 | */ |
89 | 89 | |
90 | | int esock_ssl_accept(Connection *cp); |
91 | | int esock_ssl_connect(Connection *cp); |
| 90 | extern int esock_ssl_accept(Connection *cp); |
| 91 | extern int esock_ssl_connect(Connection *cp); |
92 | 92 | |
93 | | int esock_ssl_read(Connection *cp, char *buf, int len); |
94 | | int esock_ssl_write(Connection *cp, char *buf, int len); |
| 93 | extern int esock_ssl_read(Connection *cp, char *buf, int len); |
| 94 | extern int esock_ssl_write(Connection *cp, char *buf, int len); |
95 | 95 | |
96 | | int esock_ssl_shutdown(Connection *cp); |
| 96 | extern int esock_ssl_shutdown(Connection *cp); |
97 | 97 | |
98 | 98 | /* Peer certificate */ |
99 | 99 | |
100 | | int esock_ssl_getpeercert(Connection *cp, unsigned char **buf); |
101 | | int esock_ssl_getpeercertchain(Connection *cp, unsigned char **buf); |
| 100 | extern int esock_ssl_getpeercert(Connection *cp, unsigned char **buf); |
| 101 | extern int esock_ssl_getpeercertchain(Connection *cp, unsigned char **buf); |
102 | 102 | |
103 | 103 | /* Sessions */ |
104 | | int esock_ssl_session_reused(Connection *cp); |
| 104 | extern int esock_ssl_session_reused(Connection *cp); |
105 | 105 | |
106 | 106 | /* Protocol version and cipher of established connection */ |
107 | | int esock_ssl_getprotocol_version(Connection *cp, char **buf); |
108 | | int esock_ssl_getcipher(Connection *cp, char **buf); |
| 107 | extern int esock_ssl_getprotocol_version(Connection *cp, char **buf); |
| 108 | extern int esock_ssl_getcipher(Connection *cp, char **buf); |
109 | 109 | |
110 | 110 | #endif |