Added copying conditions.
[libidn.git] / profiles.c
blob4d76a636751de983f810e11c4f7fb64619d81a46
1 /* profiles.c definitions of stringprep profiles shipped with libstringprep
2 * Copyright (C) 2002 Simon Josefsson
4 * This file is part of libstringprep.
6 * Libstringprep is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * Libstringprep is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with libstringprep; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "stringprep_generic.h"
23 #include "stringprep_nameprep.h"
24 #include "stringprep_kerberos5.h"
26 struct stringprep_table stringprep_generic[] = {
27 {0, stringprep_generic_B_1},
28 {~STRINGPREP_NO_NFKC, stringprep_generic_B_2},
29 {STRINGPREP_NO_NFKC, stringprep_generic_B_3},
30 {~STRINGPREP_NO_NFKC},
31 {0, stringprep_generic_C_1_1},
32 {0, stringprep_generic_C_1_2},
33 {0, stringprep_generic_C_2_1},
34 {0, stringprep_generic_C_2_2},
35 {0, stringprep_generic_C_3},
36 {0, stringprep_generic_C_4},
37 {0, stringprep_generic_C_5},
38 {0, stringprep_generic_C_6},
39 {0, stringprep_generic_C_7},
40 {STRINGPREP_BIDI_PROHIBITED_MASK, stringprep_generic_C_8},
41 {0, stringprep_generic_C_9},
42 {STRINGPREP_BIDI_RAL_MASK, stringprep_generic_D_1},
43 {STRINGPREP_BIDI_L_MASK, stringprep_generic_D_2},
44 {0}
47 struct stringprep_table stringprep_nameprep[] = {
48 {0, stringprep_generic_B_1},
49 {~STRINGPREP_NO_NFKC, stringprep_generic_B_2},
50 {~STRINGPREP_NO_NFKC},
51 {0, stringprep_generic_C_1_2},
52 {0, stringprep_generic_C_2_2},
53 {0, stringprep_generic_C_3},
54 {0, stringprep_generic_C_4},
55 {0, stringprep_generic_C_5},
56 {0, stringprep_generic_C_6},
57 {0, stringprep_generic_C_7},
58 {~STRINGPREP_NO_BIDI & STRINGPREP_BIDI_PROHIBITED, stringprep_generic_C_8},
59 {0, stringprep_generic_C_9},
60 {~STRINGPREP_NO_BIDI & STRINGPREP_BIDI_RAL, stringprep_generic_D_1},
61 {~STRINGPREP_NO_BIDI & STRINGPREP_BIDI_L, stringprep_generic_D_2},
62 {0}
65 struct stringprep_table stringprep_kerberos5[] = {
66 {0, stringprep_generic_B_1},
67 {~STRINGPREP_NO_NFKC, stringprep_generic_B_2},
68 {~STRINGPREP_NO_NFKC},
69 {0, stringprep_generic_C_1_2},
70 {0, stringprep_generic_C_2_2},
71 {0, stringprep_generic_C_3},
72 {0, stringprep_generic_C_4},
73 {0, stringprep_generic_C_5},
74 {0, stringprep_generic_C_6},
75 {0, stringprep_generic_C_7},
76 {0, stringprep_generic_C_9},
77 {0}