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
// This file is part of bearssl-sys. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/bearssl-sys/master/COPYRIGHT. No part of bearssl-sys, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
// Copyright © 2016 The developers of bearssl-sys. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/bearssl-sys/master/COPYRIGHT.


pub const BR_ERR_BAD_ALERT: c_uint = 13;
pub const BR_ERR_BAD_CCS: c_uint = 12;
pub const BR_ERR_BAD_CIPHER_SUITE: c_uint = 16;
pub const BR_ERR_BAD_COMPRESSION: c_uint = 17;
pub const BR_ERR_BAD_FINISHED: c_uint = 24;
pub const BR_ERR_BAD_FRAGLEN: c_uint = 18;
pub const BR_ERR_BAD_HANDSHAKE: c_uint = 14;
pub const BR_ERR_BAD_HELLO_DONE: c_uint = 22;
pub const BR_ERR_BAD_LENGTH: c_uint = 5;
pub const BR_ERR_BAD_MAC: c_uint = 7;
pub const BR_ERR_BAD_PARAM: c_uint = 1;
pub const BR_ERR_BAD_SECRENEG: c_uint = 19;
pub const BR_ERR_BAD_SIGNATURE: c_uint = 27;
pub const BR_ERR_BAD_SNI: c_uint = 21;
pub const BR_ERR_BAD_STATE: c_uint = 2;
pub const BR_ERR_BAD_VERSION: c_uint = 4;
pub const BR_ERR_EXTRA_EXTENSION: c_uint = 20;
pub const BR_ERR_INVALID_ALGORITHM: c_uint = 26;
pub const BR_ERR_IO: c_uint = 31;
pub const BR_ERR_LIMIT_EXCEEDED: c_uint = 23;
pub const BR_ERR_NO_CLIENT_AUTH: c_uint = 29;
pub const BR_ERR_NO_RANDOM: c_uint = 8;
pub const BR_ERR_OK: c_uint = 0;
pub const BR_ERR_OVERSIZED_ID: c_uint = 15;
pub const BR_ERR_RECV_FATAL_ALERT: c_uint = 256;
pub const BR_ERR_RESUME_MISMATCH: c_uint = 25;
pub const BR_ERR_SEND_FATAL_ALERT: c_uint = 512;
pub const BR_ERR_TOO_LARGE: c_uint = 6;
pub const BR_ERR_UNEXPECTED: c_uint = 10;
pub const BR_ERR_UNKNOWN_TYPE: c_uint = 9;
pub const BR_ERR_UNSUPPORTED_VERSION: c_uint = 3;
pub const BR_ERR_WRONG_KEY_USAGE: c_uint = 28;
pub const BR_ERR_X509_BAD_BOOLEAN: c_uint = 45;
pub const BR_ERR_X509_BAD_DN: c_uint = 47;
pub const BR_ERR_X509_BAD_SERVER_NAME: c_uint = 56;
pub const BR_ERR_X509_BAD_SIGNATURE: c_uint = 52;
pub const BR_ERR_X509_BAD_TAG_CLASS: c_uint = 37;
pub const BR_ERR_X509_BAD_TAG_VALUE: c_uint = 38;
pub const BR_ERR_X509_BAD_TIME: c_uint = 48;
pub const BR_ERR_X509_CRITICAL_EXTENSION: c_uint = 57;
pub const BR_ERR_X509_DN_MISMATCH: c_uint = 55;
pub const BR_ERR_X509_EMPTY_CHAIN: c_uint = 35;
pub const BR_ERR_X509_EXPIRED: c_uint = 54;
pub const BR_ERR_X509_EXTRA_ELEMENT: c_uint = 40;
pub const BR_ERR_X509_FORBIDDEN_KEY_USAGE: c_uint = 59;
pub const BR_ERR_X509_INDEFINITE_LENGTH: c_uint = 39;
pub const BR_ERR_X509_INNER_TRUNC: c_uint = 36;
pub const BR_ERR_X509_INVALID_VALUE: c_uint = 33;
pub const BR_ERR_X509_LIMIT_EXCEEDED: c_uint = 50;
pub const BR_ERR_X509_NOT_CA: c_uint = 58;
pub const BR_ERR_X509_NOT_CONSTRUCTED: c_uint = 42;
pub const BR_ERR_X509_NOT_PRIMITIVE: c_uint = 43;
pub const BR_ERR_X509_NOT_TRUSTED: c_uint = 62;
pub const BR_ERR_X509_OK: c_uint = 32;
pub const BR_ERR_X509_OVERFLOW: c_uint = 46;
pub const BR_ERR_X509_PARTIAL_BYTE: c_uint = 44;
pub const BR_ERR_X509_TIME_UNKNOWN: c_uint = 53;
pub const BR_ERR_X509_TRUNCATED: c_uint = 34;
pub const BR_ERR_X509_UNEXPECTED: c_uint = 41;
pub const BR_ERR_X509_UNSUPPORTED: c_uint = 49;
pub const BR_ERR_X509_WEAK_PUBLIC_KEY: c_uint = 60;
pub const BR_ERR_X509_WRONG_KEY_TYPE: c_uint = 51;