1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
3 * Copyright (C) 2008 by the Massachusetts Institute of Technology,
4 * Cambridge, MA, USA. All Rights Reserved.
6 * This software is being provided to you, the LICENSEE, by the
7 * Massachusetts Institute of Technology (M.I.T.) under the following
8 * license. By obtaining, using and/or copying this software, you agree
9 * that you have read, understood, and will comply with these terms and
12 * Export of this software from the United States of America may
13 * require a specific license from the United States Government.
14 * It is the responsibility of any person or organization contemplating
15 * export to obtain such a license before exporting.
17 * WITHIN THAT CONSTRAINT, permission to use, copy, modify and distribute
18 * this software and its documentation for any purpose and without fee or
19 * royalty is hereby granted, provided that you agree to comply with the
20 * following copyright notice and statements, including the disclaimer, and
21 * that the same appear on ALL copies of the software and documentation,
22 * including modifications that you make for internal use or for
25 * THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS
26 * OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not
27 * limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF
28 * MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
29 * THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
30 * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
32 * The name of the Massachusetts Institute of Technology or M.I.T. may NOT
33 * be used in advertising or publicity pertaining to distribution of the
34 * software. Title to copyright in this software and any associated
35 * documentation shall at all times remain with M.I.T., and USER agrees to
38 * Furthermore if you modify this software you must label
39 * your software as modified software and not distribute it in such a
40 * fashion that it might be confused with the original M.I.T. software.
43 * Copyright 1998-2008 The OpenLDAP Foundation.
44 * All rights reserved.
46 * Redistribution and use in source and binary forms, with or without
47 * modification, are permitted only as authorized by the OpenLDAP
50 * A copy of this license is available in file LICENSE in the
51 * top-level directory of the distribution or, alternatively, at
52 * <http://www.OpenLDAP.org/license.html>.
55 * Copyright (C) 2000 Novell, Inc. All Rights Reserved.
57 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.
58 * USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO VERSION
59 * 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS AVAILABLE AT
60 * HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE" IN THE
61 * TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION OF THIS
62 * WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP PUBLIC
63 * LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT THE
64 * PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
67 /* This work is part of OpenLDAP Software <http://www.openldap.org/>. */
74 #ifdef HAVE_SYS_TYPES_H
75 #include <sys/types.h>
88 typedef krb5_ucs4 krb5_unicode;
90 int krb5int_ucstrncmp(
95 int krb5int_ucstrncasecmp(
100 krb5_unicode *krb5int_ucstrnchr(
101 const krb5_unicode *,
105 krb5_unicode *krb5int_ucstrncasechr(
106 const krb5_unicode *,
110 void krb5int_ucstr2upper(
114 #define KRB5_UTF8_NOCASEFOLD 0x0U
115 #define KRB5_UTF8_CASEFOLD 0x1U
116 #define KRB5_UTF8_ARG1NFC 0x2U
117 #define KRB5_UTF8_ARG2NFC 0x4U
118 #define KRB5_UTF8_APPROX 0x8U
120 krb5_error_code krb5int_utf8_normalize(
125 int krb5int_utf8_normcmp(
130 #endif /* K5_UNICODE_H */