-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbindings-ssl.lisp
260 lines (162 loc) · 8.77 KB
/
bindings-ssl.lisp
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
;;; This file was automatically generated by SWIG (http://www.swig.org).
;;; Version 2.0.11
;;;
;;; Do not make changes to this file unless you know what you are doing--modify
;;; the SWIG interface file instead.
(in-package :libevent2-ssl)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_OPENSSL" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_FCNTL_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_GETTIMEOFDAY" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_INTTYPES_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_MEMORY_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_OPENSSL_BIO_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_PUTENV" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_SIGNAL" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STDARG_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STDDEF_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STDINT_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STDLIB_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRINGS_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRING_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRTOLL" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_ADDRINFO" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_IN6_ADDR" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_IN6_ADDR_S6_ADDR16" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_IN6_ADDR_S6_ADDR32" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_SOCKADDR_IN6" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_SOCKADDR_STORAGE" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_SYS_PARAM_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_SYS_STAT_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_SYS_TIME_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_SYS_TYPES_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_TIMERCLEAR" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_TIMERCMP" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_TIMERISSET" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UINT16_T" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UINT32_T" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UINT64_T" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UINT8_T" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UINTPTR_T" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UMASK" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_HAVE_UNISTD_H" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_NUMERIC_VERSION" 'constant) #x02001500)
(cl:defconstant #.(le::lispify "_EVENT_SIZEOF_INT" 'constant) 4)
(cl:defconstant #.(le::lispify "_EVENT_SIZEOF_LONG" 'constant) 4)
(cl:defconstant #.(le::lispify "_EVENT_SIZEOF_LONG_LONG" 'constant) 8)
(cl:defconstant #.(le::lispify "_EVENT_SIZEOF_SHORT" 'constant) 2)
(cl:defconstant #.(le::lispify "_EVENT_SIZEOF_SIZE_T" 'constant) 4)
(cl:defconstant #.(le::lispify "_EVENT_SIZEOF_VOID_P" 'constant) 4)
(cl:defconstant #.(le::lispify "_EVENT_STDC_HEADERS" 'constant) 1)
(cl:defconstant #.(le::lispify "_EVENT_TIME_WITH_SYS_TIME" 'constant) 1)
(cl:defconstant #.(le::lispify "EV_UINT8_MAX" 'constant) 255)
(cl:defconstant #.(le::lispify "EV_INT8_MAX" 'constant) 127)
(cl:defconstant #.(le::lispify "EV_INT8_MIN" 'constant) (cl:- (- 127) 1))
(cffi:defcfun ("evutil_socketpair" #.(le::lispify "evutil_socketpair" 'function)) :int
(d :int)
(type :int)
(protocol :int)
(sv :pointer))
(cffi:defcfun ("evutil_make_socket_nonblocking" #.(le::lispify "evutil_make_socket_nonblocking" 'function)) :int
(sock :int))
(cffi:defcfun ("evutil_make_listen_socket_reuseable" #.(le::lispify "evutil_make_listen_socket_reuseable" 'function)) :int
(sock :int))
(cffi:defcfun ("evutil_make_socket_closeonexec" #.(le::lispify "evutil_make_socket_closeonexec" 'function)) :int
(sock :int))
(cffi:defcfun ("evutil_closesocket" #.(le::lispify "evutil_closesocket" 'function)) :int
(sock :int))
(cffi:defcfun ("evutil_strtoll" #.(le::lispify "evutil_strtoll" 'function)) :pointer
(s :string)
(endptr :pointer)
(base :int))
(cffi:defcfun ("evutil_snprintf" #.(le::lispify "evutil_snprintf" 'function)) :int
(buf :string)
(buflen :unsigned-long)
(format :string)
&rest)
(cffi:defcfun ("evutil_vsnprintf" #.(le::lispify "evutil_vsnprintf" 'function)) :int
(buf :string)
(buflen :unsigned-long)
(format :string)
(ap :pointer))
(cffi:defcfun ("evutil_inet_ntop" #.(le::lispify "evutil_inet_ntop" 'function)) :string
(af :int)
(src :pointer)
(dst :string)
(len :unsigned-long))
(cffi:defcfun ("evutil_inet_pton" #.(le::lispify "evutil_inet_pton" 'function)) :int
(af :int)
(src :string)
(dst :pointer))
(cffi:defcfun ("evutil_parse_sockaddr_port" #.(le::lispify "evutil_parse_sockaddr_port" 'function)) :int
(str :string)
(out :pointer)
(outlen :pointer))
(cffi:defcfun ("evutil_sockaddr_cmp" #.(le::lispify "evutil_sockaddr_cmp" 'function)) :int
(sa1 :pointer)
(sa2 :pointer)
(include_port :int))
(cffi:defcfun ("evutil_ascii_strcasecmp" #.(le::lispify "evutil_ascii_strcasecmp" 'function)) :int
(str1 :string)
(str2 :string))
(cffi:defcfun ("evutil_ascii_strncasecmp" #.(le::lispify "evutil_ascii_strncasecmp" 'function)) :int
(str1 :string)
(str2 :string)
(n :unsigned-long))
(cl:defconstant #.(le::lispify "EVUTIL_EAI_ADDRFAMILY" 'constant) -901)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_AGAIN" 'constant) -902)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_BADFLAGS" 'constant) -903)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_FAIL" 'constant) -904)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_FAMILY" 'constant) -905)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_MEMORY" 'constant) -906)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_NODATA" 'constant) -907)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_NONAME" 'constant) -908)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_SERVICE" 'constant) -909)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_SOCKTYPE" 'constant) -910)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_SYSTEM" 'constant) -911)
(cl:defconstant #.(le::lispify "EVUTIL_EAI_CANCEL" 'constant) -90001)
(cl:defconstant #.(le::lispify "EVUTIL_AI_PASSIVE" 'constant) #x1000)
(cl:defconstant #.(le::lispify "EVUTIL_AI_CANONNAME" 'constant) #x2000)
(cl:defconstant #.(le::lispify "EVUTIL_AI_NUMERICHOST" 'constant) #x4000)
(cl:defconstant #.(le::lispify "EVUTIL_AI_NUMERICSERV" 'constant) #x8000)
(cl:defconstant #.(le::lispify "EVUTIL_AI_V4MAPPED" 'constant) #x10000)
(cl:defconstant #.(le::lispify "EVUTIL_AI_ALL" 'constant) #x20000)
(cl:defconstant #.(le::lispify "EVUTIL_AI_ADDRCONFIG" 'constant) #x40000)
(cffi:defcfun ("evutil_getaddrinfo" #.(le::lispify "evutil_getaddrinfo" 'function)) :int
(nodename :string)
(servname :string)
(hints_in :pointer)
(res :pointer))
(cffi:defcfun ("evutil_freeaddrinfo" #.(le::lispify "evutil_freeaddrinfo" 'function)) :void
(ai :pointer))
(cffi:defcfun ("evutil_gai_strerror" #.(le::lispify "evutil_gai_strerror" 'function)) :string
(err :int))
(cffi:defcfun ("evutil_secure_rng_get_bytes" #.(le::lispify "evutil_secure_rng_get_bytes" 'function)) :void
(buf :pointer)
(n :unsigned-long))
(cffi:defcfun ("evutil_secure_rng_init" #.(le::lispify "evutil_secure_rng_init" 'function)) :int)
(cffi:defcfun ("evutil_secure_rng_add_bytes" #.(le::lispify "evutil_secure_rng_add_bytes" 'function)) :void
(dat :string)
(datlen :unsigned-long))
(cffi:defcenum #.(le::lispify "bufferevent_ssl_state" 'enumname)
(#.(le::lispify "BUFFEREVENT_SSL_OPEN" 'enumvalue :keyword) #.0)
(#.(le::lispify "BUFFEREVENT_SSL_CONNECTING" 'enumvalue :keyword) #.1)
(#.(le::lispify "BUFFEREVENT_SSL_ACCEPTING" 'enumvalue :keyword) #.2))
(cffi:defcfun ("bufferevent_openssl_filter_new" #.(le::lispify "bufferevent_openssl_filter_new" 'function)) :pointer
(base :pointer)
(underlying :pointer)
(ssl :pointer)
(state #.(le::lispify "bufferevent_ssl_state" 'enumname))
(options :int))
(cffi:defcfun ("bufferevent_openssl_socket_new" #.(le::lispify "bufferevent_openssl_socket_new" 'function)) :pointer
(base :pointer)
(fd :int)
(ssl :pointer)
(state #.(le::lispify "bufferevent_ssl_state" 'enumname))
(options :int))
(cffi:defcfun ("bufferevent_openssl_get_ssl" #.(le::lispify "bufferevent_openssl_get_ssl" 'function)) :pointer
(bufev :pointer))
(cffi:defcfun ("bufferevent_ssl_renegotiate" #.(le::lispify "bufferevent_ssl_renegotiate" 'function)) :int
(bev :pointer))
(cffi:defcfun ("bufferevent_get_openssl_error" #.(le::lispify "bufferevent_get_openssl_error" 'function)) :unsigned-long
(bev :pointer))