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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
/* automatically generated by rust-bindgen */

pub const _STDINT_H: ::std::os::raw::c_uint = 1;
pub const _FEATURES_H: ::std::os::raw::c_uint = 1;
pub const _DEFAULT_SOURCE: ::std::os::raw::c_uint = 1;
pub const __USE_ISOC11: ::std::os::raw::c_uint = 1;
pub const __USE_ISOC99: ::std::os::raw::c_uint = 1;
pub const __USE_ISOC95: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX_IMPLICITLY: ::std::os::raw::c_uint = 1;
pub const _POSIX_SOURCE: ::std::os::raw::c_uint = 1;
pub const _POSIX_C_SOURCE: ::std::os::raw::c_uint = 200809;
pub const __USE_POSIX: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX2: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX199309: ::std::os::raw::c_uint = 1;
pub const __USE_POSIX199506: ::std::os::raw::c_uint = 1;
pub const __USE_XOPEN2K: ::std::os::raw::c_uint = 1;
pub const __USE_XOPEN2K8: ::std::os::raw::c_uint = 1;
pub const _ATFILE_SOURCE: ::std::os::raw::c_uint = 1;
pub const __USE_MISC: ::std::os::raw::c_uint = 1;
pub const __USE_ATFILE: ::std::os::raw::c_uint = 1;
pub const __USE_FORTIFY_LEVEL: ::std::os::raw::c_uint = 0;
pub const _STDC_PREDEF_H: ::std::os::raw::c_uint = 1;
pub const __STDC_IEC_559__: ::std::os::raw::c_uint = 1;
pub const __STDC_IEC_559_COMPLEX__: ::std::os::raw::c_uint = 1;
pub const __STDC_ISO_10646__: ::std::os::raw::c_uint = 201605;
pub const __STDC_NO_THREADS__: ::std::os::raw::c_uint = 1;
pub const __GNU_LIBRARY__: ::std::os::raw::c_uint = 6;
pub const __GLIBC__: ::std::os::raw::c_uint = 2;
pub const __GLIBC_MINOR__: ::std::os::raw::c_uint = 24;
pub const _SYS_CDEFS_H: ::std::os::raw::c_uint = 1;
pub const __WORDSIZE: ::std::os::raw::c_uint = 64;
pub const __WORDSIZE_TIME64_COMPAT32: ::std::os::raw::c_uint = 1;
pub const __SYSCALL_WORDSIZE: ::std::os::raw::c_uint = 64;
pub const _BITS_WCHAR_H: ::std::os::raw::c_uint = 1;
pub const INT8_MIN: ::std::os::raw::c_int = -128;
pub const INT16_MIN: ::std::os::raw::c_int = -32768;
pub const INT32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT8_MAX: ::std::os::raw::c_uint = 127;
pub const INT16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const UINT8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT_LEAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_LEAST16_MIN: ::std::os::raw::c_int = -32768;
pub const INT_LEAST32_MIN: ::std::os::raw::c_int = -2147483648;
pub const INT_LEAST8_MAX: ::std::os::raw::c_uint = 127;
pub const INT_LEAST16_MAX: ::std::os::raw::c_uint = 32767;
pub const INT_LEAST32_MAX: ::std::os::raw::c_uint = 2147483647;
pub const UINT_LEAST8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT_LEAST16_MAX: ::std::os::raw::c_uint = 65535;
pub const UINT_LEAST32_MAX: ::std::os::raw::c_uint = 4294967295;
pub const INT_FAST8_MIN: ::std::os::raw::c_int = -128;
pub const INT_FAST16_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_FAST32_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INT_FAST8_MAX: ::std::os::raw::c_uint = 127;
pub const INT_FAST16_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const INT_FAST32_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINT_FAST8_MAX: ::std::os::raw::c_uint = 255;
pub const UINT_FAST16_MAX: ::std::os::raw::c_int = -1;
pub const UINT_FAST32_MAX: ::std::os::raw::c_int = -1;
pub const INTPTR_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const INTPTR_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const UINTPTR_MAX: ::std::os::raw::c_int = -1;
pub const PTRDIFF_MIN: ::std::os::raw::c_longlong = -9223372036854775808;
pub const PTRDIFF_MAX: ::std::os::raw::c_ulonglong = 9223372036854775807;
pub const SIG_ATOMIC_MIN: ::std::os::raw::c_int = -2147483648;
pub const SIG_ATOMIC_MAX: ::std::os::raw::c_uint = 2147483647;
pub const SIZE_MAX: ::std::os::raw::c_int = -1;
pub const WINT_MIN: ::std::os::raw::c_uint = 0;
pub const WINT_MAX: ::std::os::raw::c_uint = 4294967295;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: f64,
}
#[test]
fn bindgen_test_layout_max_align_t() {
    assert_eq!(::std::mem::size_of::<max_align_t>() , 32usize , concat ! (
               "Size of: " , stringify ! ( max_align_t ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const max_align_t ) ) .
                __clang_max_align_nonce1 as * const _ as usize } , 0usize ,
                concat ! (
                "Alignment of field: " , stringify ! ( max_align_t ) , "::" ,
                stringify ! ( __clang_max_align_nonce1 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const max_align_t ) ) .
                __clang_max_align_nonce2 as * const _ as usize } , 16usize ,
                concat ! (
                "Alignment of field: " , stringify ! ( max_align_t ) , "::" ,
                stringify ! ( __clang_max_align_nonce2 ) ));
}
impl Clone for max_align_t {
    fn clone(&self) -> Self { *self }
}
pub type int_least8_t = ::std::os::raw::c_schar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type int_least32_t = ::std::os::raw::c_int;
pub type int_least64_t = ::std::os::raw::c_long;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type uint_least64_t = ::std::os::raw::c_ulong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = ::std::os::raw::c_long;
pub type uintmax_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OlmInboundGroupSession {
    _unused: [u8; 0],
}
extern "C" {
    pub fn olm_inbound_group_session_size() -> usize;
}
extern "C" {
    pub fn olm_inbound_group_session(memory: *mut ::std::os::raw::c_void)
     -> *mut OlmInboundGroupSession;
}
extern "C" {
    pub fn olm_inbound_group_session_last_error(session:
                                                    *const OlmInboundGroupSession)
     -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn olm_clear_inbound_group_session(session:
                                               *mut OlmInboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_pickle_inbound_group_session_length(session:
                                                       *const OlmInboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_pickle_inbound_group_session(session:
                                                *mut OlmInboundGroupSession,
                                            key:
                                                *const ::std::os::raw::c_void,
                                            key_length: usize,
                                            pickled:
                                                *mut ::std::os::raw::c_void,
                                            pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_unpickle_inbound_group_session(session:
                                                  *mut OlmInboundGroupSession,
                                              key:
                                                  *const ::std::os::raw::c_void,
                                              key_length: usize,
                                              pickled:
                                                  *mut ::std::os::raw::c_void,
                                              pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_init_inbound_group_session(session:
                                              *mut OlmInboundGroupSession,
                                          session_key: *const u8,
                                          session_key_length: usize) -> usize;
}
extern "C" {
    pub fn olm_import_inbound_group_session(session:
                                                *mut OlmInboundGroupSession,
                                            session_key: *const u8,
                                            session_key_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_group_decrypt_max_plaintext_length(session:
                                                      *mut OlmInboundGroupSession,
                                                  message: *mut u8,
                                                  message_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_group_decrypt(session: *mut OlmInboundGroupSession,
                             message: *mut u8, message_length: usize,
                             plaintext: *mut u8, max_plaintext_length: usize,
                             message_index: *mut u32) -> usize;
}
extern "C" {
    pub fn olm_inbound_group_session_id_length(session:
                                                   *const OlmInboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_inbound_group_session_id(session: *mut OlmInboundGroupSession,
                                        id: *mut u8, id_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_inbound_group_session_first_known_index(session:
                                                           *const OlmInboundGroupSession)
     -> u32;
}
extern "C" {
    pub fn olm_inbound_group_session_is_verified(session:
                                                     *const OlmInboundGroupSession)
     -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn olm_export_inbound_group_session_length(session:
                                                       *const OlmInboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_export_inbound_group_session(session:
                                                *mut OlmInboundGroupSession,
                                            key: *mut u8, key_length: usize,
                                            message_index: u32) -> usize;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OlmOutboundGroupSession {
    _unused: [u8; 0],
}
extern "C" {
    pub fn olm_outbound_group_session_size() -> usize;
}
extern "C" {
    pub fn olm_outbound_group_session(memory: *mut ::std::os::raw::c_void)
     -> *mut OlmOutboundGroupSession;
}
extern "C" {
    pub fn olm_outbound_group_session_last_error(session:
                                                     *const OlmOutboundGroupSession)
     -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn olm_clear_outbound_group_session(session:
                                                *mut OlmOutboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_pickle_outbound_group_session_length(session:
                                                        *const OlmOutboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_pickle_outbound_group_session(session:
                                                 *mut OlmOutboundGroupSession,
                                             key:
                                                 *const ::std::os::raw::c_void,
                                             key_length: usize,
                                             pickled:
                                                 *mut ::std::os::raw::c_void,
                                             pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_unpickle_outbound_group_session(session:
                                                   *mut OlmOutboundGroupSession,
                                               key:
                                                   *const ::std::os::raw::c_void,
                                               key_length: usize,
                                               pickled:
                                                   *mut ::std::os::raw::c_void,
                                               pickled_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_init_outbound_group_session_random_length(session:
                                                             *const OlmOutboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_init_outbound_group_session(session:
                                               *mut OlmOutboundGroupSession,
                                           random: *mut u8,
                                           random_length: usize) -> usize;
}
extern "C" {
    pub fn olm_group_encrypt_message_length(session:
                                                *mut OlmOutboundGroupSession,
                                            plaintext_length: usize) -> usize;
}
extern "C" {
    pub fn olm_group_encrypt(session: *mut OlmOutboundGroupSession,
                             plaintext: *const u8, plaintext_length: usize,
                             message: *mut u8, message_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_outbound_group_session_id_length(session:
                                                    *const OlmOutboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_outbound_group_session_id(session:
                                             *mut OlmOutboundGroupSession,
                                         id: *mut u8, id_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_outbound_group_session_message_index(session:
                                                        *mut OlmOutboundGroupSession)
     -> u32;
}
extern "C" {
    pub fn olm_outbound_group_session_key_length(session:
                                                     *const OlmOutboundGroupSession)
     -> usize;
}
extern "C" {
    pub fn olm_outbound_group_session_key(session:
                                              *mut OlmOutboundGroupSession,
                                          key: *mut u8, key_length: usize)
     -> usize;
}
pub const OLM_MESSAGE_TYPE_PRE_KEY: usize = 0;
pub const OLM_MESSAGE_TYPE_MESSAGE: usize = 1;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OlmAccount {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OlmSession {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OlmUtility {
    _unused: [u8; 0],
}
extern "C" {
    pub fn olm_get_library_version(major: *mut u8, minor: *mut u8,
                                   patch: *mut u8);
}
extern "C" {
    pub fn olm_account_size() -> usize;
}
extern "C" {
    pub fn olm_session_size() -> usize;
}
extern "C" {
    pub fn olm_utility_size() -> usize;
}
extern "C" {
    pub fn olm_account(memory: *mut ::std::os::raw::c_void)
     -> *mut OlmAccount;
}
extern "C" {
    pub fn olm_session(memory: *mut ::std::os::raw::c_void)
     -> *mut OlmSession;
}
extern "C" {
    pub fn olm_utility(memory: *mut ::std::os::raw::c_void)
     -> *mut OlmUtility;
}
extern "C" {
    pub fn olm_error() -> usize;
}
extern "C" {
    pub fn olm_account_last_error(account: *mut OlmAccount)
     -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn olm_session_last_error(session: *mut OlmSession)
     -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn olm_utility_last_error(utility: *mut OlmUtility)
     -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn olm_clear_account(account: *mut OlmAccount) -> usize;
}
extern "C" {
    pub fn olm_clear_session(session: *mut OlmSession) -> usize;
}
extern "C" {
    pub fn olm_clear_utility(utility: *mut OlmUtility) -> usize;
}
extern "C" {
    pub fn olm_pickle_account_length(account: *mut OlmAccount) -> usize;
}
extern "C" {
    pub fn olm_pickle_session_length(session: *mut OlmSession) -> usize;
}
extern "C" {
    pub fn olm_pickle_account(account: *mut OlmAccount,
                              key: *const ::std::os::raw::c_void,
                              key_length: usize,
                              pickled: *mut ::std::os::raw::c_void,
                              pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_pickle_session(session: *mut OlmSession,
                              key: *const ::std::os::raw::c_void,
                              key_length: usize,
                              pickled: *mut ::std::os::raw::c_void,
                              pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_unpickle_account(account: *mut OlmAccount,
                                key: *const ::std::os::raw::c_void,
                                key_length: usize,
                                pickled: *mut ::std::os::raw::c_void,
                                pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_unpickle_session(session: *mut OlmSession,
                                key: *const ::std::os::raw::c_void,
                                key_length: usize,
                                pickled: *mut ::std::os::raw::c_void,
                                pickled_length: usize) -> usize;
}
extern "C" {
    pub fn olm_create_account_random_length(account: *mut OlmAccount)
     -> usize;
}
extern "C" {
    pub fn olm_create_account(account: *mut OlmAccount,
                              random: *mut ::std::os::raw::c_void,
                              random_length: usize) -> usize;
}
extern "C" {
    pub fn olm_account_identity_keys_length(account: *mut OlmAccount)
     -> usize;
}
extern "C" {
    pub fn olm_account_identity_keys(account: *mut OlmAccount,
                                     identity_keys:
                                         *mut ::std::os::raw::c_void,
                                     identity_key_length: usize) -> usize;
}
extern "C" {
    pub fn olm_account_signature_length(account: *mut OlmAccount) -> usize;
}
extern "C" {
    pub fn olm_account_sign(account: *mut OlmAccount,
                            message: *const ::std::os::raw::c_void,
                            message_length: usize,
                            signature: *mut ::std::os::raw::c_void,
                            signature_length: usize) -> usize;
}
extern "C" {
    pub fn olm_account_one_time_keys_length(account: *mut OlmAccount)
     -> usize;
}
extern "C" {
    pub fn olm_account_one_time_keys(account: *mut OlmAccount,
                                     one_time_keys:
                                         *mut ::std::os::raw::c_void,
                                     one_time_keys_length: usize) -> usize;
}
extern "C" {
    pub fn olm_account_mark_keys_as_published(account: *mut OlmAccount)
     -> usize;
}
extern "C" {
    pub fn olm_account_max_number_of_one_time_keys(account: *mut OlmAccount)
     -> usize;
}
extern "C" {
    pub fn olm_account_generate_one_time_keys_random_length(account:
                                                                *mut OlmAccount,
                                                            number_of_keys:
                                                                usize)
     -> usize;
}
extern "C" {
    pub fn olm_account_generate_one_time_keys(account: *mut OlmAccount,
                                              number_of_keys: usize,
                                              random:
                                                  *mut ::std::os::raw::c_void,
                                              random_length: usize) -> usize;
}
extern "C" {
    pub fn olm_create_outbound_session_random_length(session: *mut OlmSession)
     -> usize;
}
extern "C" {
    pub fn olm_create_outbound_session(session: *mut OlmSession,
                                       account: *mut OlmAccount,
                                       their_identity_key:
                                           *const ::std::os::raw::c_void,
                                       their_identity_key_length: usize,
                                       their_one_time_key:
                                           *const ::std::os::raw::c_void,
                                       their_one_time_key_length: usize,
                                       random: *mut ::std::os::raw::c_void,
                                       random_length: usize) -> usize;
}
extern "C" {
    pub fn olm_create_inbound_session(session: *mut OlmSession,
                                      account: *mut OlmAccount,
                                      one_time_key_message:
                                          *mut ::std::os::raw::c_void,
                                      message_length: usize) -> usize;
}
extern "C" {
    pub fn olm_create_inbound_session_from(session: *mut OlmSession,
                                           account: *mut OlmAccount,
                                           their_identity_key:
                                               *const ::std::os::raw::c_void,
                                           their_identity_key_length: usize,
                                           one_time_key_message:
                                               *mut ::std::os::raw::c_void,
                                           message_length: usize) -> usize;
}
extern "C" {
    pub fn olm_session_id_length(session: *mut OlmSession) -> usize;
}
extern "C" {
    pub fn olm_session_id(session: *mut OlmSession,
                          id: *mut ::std::os::raw::c_void, id_length: usize)
     -> usize;
}
extern "C" {
    pub fn olm_session_has_received_message(session: *mut OlmSession)
     -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn olm_matches_inbound_session(session: *mut OlmSession,
                                       one_time_key_message:
                                           *mut ::std::os::raw::c_void,
                                       message_length: usize) -> usize;
}
extern "C" {
    pub fn olm_matches_inbound_session_from(session: *mut OlmSession,
                                            their_identity_key:
                                                *const ::std::os::raw::c_void,
                                            their_identity_key_length: usize,
                                            one_time_key_message:
                                                *mut ::std::os::raw::c_void,
                                            message_length: usize) -> usize;
}
extern "C" {
    pub fn olm_remove_one_time_keys(account: *mut OlmAccount,
                                    session: *mut OlmSession) -> usize;
}
extern "C" {
    pub fn olm_encrypt_message_type(session: *mut OlmSession) -> usize;
}
extern "C" {
    pub fn olm_encrypt_random_length(session: *mut OlmSession) -> usize;
}
extern "C" {
    pub fn olm_encrypt_message_length(session: *mut OlmSession,
                                      plaintext_length: usize) -> usize;
}
extern "C" {
    pub fn olm_encrypt(session: *mut OlmSession,
                       plaintext: *const ::std::os::raw::c_void,
                       plaintext_length: usize,
                       random: *mut ::std::os::raw::c_void,
                       random_length: usize,
                       message: *mut ::std::os::raw::c_void,
                       message_length: usize) -> usize;
}
extern "C" {
    pub fn olm_decrypt_max_plaintext_length(session: *mut OlmSession,
                                            message_type: usize,
                                            message:
                                                *mut ::std::os::raw::c_void,
                                            message_length: usize) -> usize;
}
extern "C" {
    pub fn olm_decrypt(session: *mut OlmSession, message_type: usize,
                       message: *mut ::std::os::raw::c_void,
                       message_length: usize,
                       plaintext: *mut ::std::os::raw::c_void,
                       max_plaintext_length: usize) -> usize;
}
extern "C" {
    pub fn olm_sha256_length(utility: *mut OlmUtility) -> usize;
}
extern "C" {
    pub fn olm_sha256(utility: *mut OlmUtility,
                      input: *const ::std::os::raw::c_void,
                      input_length: usize,
                      output: *mut ::std::os::raw::c_void,
                      output_length: usize) -> usize;
}
extern "C" {
    pub fn olm_ed25519_verify(utility: *mut OlmUtility,
                              key: *const ::std::os::raw::c_void,
                              key_length: usize,
                              message: *const ::std::os::raw::c_void,
                              message_length: usize,
                              signature: *mut ::std::os::raw::c_void,
                              signature_length: usize) -> usize;
}