]> git.ipfire.org Git - thirdparty/openssl.git/blob - crypto/conf/conf_def.h
Fix false positives of IS_*() macros for 8-bit ASCII characters
[thirdparty/openssl.git] / crypto / conf / conf_def.h
1 /*
2 * WARNING: do not edit!
3 * Generated by crypto/conf/keysets.pl
4 *
5 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
6 * Licensed under the OpenSSL license (the "License"). You may not use
7 * this file except in compliance with the License. You can obtain a copy
8 * in the file LICENSE in the source distribution or at
9 * https://www.openssl.org/source/license.html
10 */
11
12 #define CONF_NUMBER 1
13 #define CONF_UPPER 2
14 #define CONF_LOWER 4
15 #define CONF_UNDER 256
16 #define CONF_PUNCT 512
17 #define CONF_WS 16
18 #define CONF_ESC 32
19 #define CONF_QUOTE 64
20 #define CONF_DQUOTE 1024
21 #define CONF_COMMENT 128
22 #define CONF_FCOMMENT 2048
23 #define CONF_EOF 8
24 #define CONF_ALPHA (CONF_UPPER|CONF_LOWER)
25 #define CONF_ALNUM (CONF_ALPHA|CONF_NUMBER|CONF_UNDER)
26 #define CONF_ALNUM_PUNCT (CONF_ALPHA|CONF_NUMBER|CONF_UNDER|CONF_PUNCT)
27
28
29 #define IS_COMMENT(conf,c) is_keytype(conf, c, CONF_COMMENT)
30 #define IS_FCOMMENT(conf,c) is_keytype(conf, c, CONF_FCOMMENT)
31 #define IS_EOF(conf,c) is_keytype(conf, c, CONF_EOF)
32 #define IS_ESC(conf,c) is_keytype(conf, c, CONF_ESC)
33 #define IS_NUMBER(conf,c) is_keytype(conf, c, CONF_NUMBER)
34 #define IS_WS(conf,c) is_keytype(conf, c, CONF_WS)
35 #define IS_ALNUM(conf,c) is_keytype(conf, c, CONF_ALNUM)
36 #define IS_ALNUM_PUNCT(conf,c) is_keytype(conf, c, CONF_ALNUM_PUNCT)
37 #define IS_QUOTE(conf,c) is_keytype(conf, c, CONF_QUOTE)
38 #define IS_DQUOTE(conf,c) is_keytype(conf, c, CONF_DQUOTE)
39
40 static const unsigned short CONF_type_default[128] = {
41 0x0008, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
42 0x0000, 0x0010, 0x0010, 0x0000, 0x0000, 0x0010, 0x0000, 0x0000,
43 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
44 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
45 0x0010, 0x0200, 0x0040, 0x0080, 0x0000, 0x0200, 0x0200, 0x0040,
46 0x0000, 0x0000, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200,
47 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001,
48 0x0001, 0x0001, 0x0000, 0x0200, 0x0000, 0x0000, 0x0000, 0x0200,
49 0x0200, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
50 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
51 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
52 0x0002, 0x0002, 0x0002, 0x0000, 0x0020, 0x0000, 0x0200, 0x0100,
53 0x0040, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
54 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
55 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
56 0x0004, 0x0004, 0x0004, 0x0000, 0x0200, 0x0000, 0x0200, 0x0000,
57 };
58
59 static const unsigned short CONF_type_win32[128] = {
60 0x0008, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
61 0x0000, 0x0010, 0x0010, 0x0000, 0x0000, 0x0010, 0x0000, 0x0000,
62 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
63 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
64 0x0010, 0x0200, 0x0400, 0x0000, 0x0000, 0x0200, 0x0200, 0x0000,
65 0x0000, 0x0000, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200, 0x0200,
66 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001, 0x0001,
67 0x0001, 0x0001, 0x0000, 0x0A00, 0x0000, 0x0000, 0x0000, 0x0200,
68 0x0200, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
69 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
70 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002, 0x0002,
71 0x0002, 0x0002, 0x0002, 0x0000, 0x0000, 0x0000, 0x0200, 0x0100,
72 0x0000, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
73 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
74 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004, 0x0004,
75 0x0004, 0x0004, 0x0004, 0x0000, 0x0200, 0x0000, 0x0200, 0x0000,
76 };