sss_tc_utf8.c revision de5fa34860886ad68fba5e739987e16c342e8f14
50c04f297d76a57ead2fa6b73845f7563b1fc788sf Jakub Hrozek <jhrozek@redhat.com>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf Copyright (C) 2011 Red Hat
50c04f297d76a57ead2fa6b73845f7563b1fc788sf This program is free software; you can redistribute it and/or modify
50c04f297d76a57ead2fa6b73845f7563b1fc788sf it under the terms of the GNU General Public License as published by
50c04f297d76a57ead2fa6b73845f7563b1fc788sf the Free Software Foundation; either version 3 of the License, or
50c04f297d76a57ead2fa6b73845f7563b1fc788sf (at your option) any later version.
50c04f297d76a57ead2fa6b73845f7563b1fc788sf This program is distributed in the hope that it will be useful,
50c04f297d76a57ead2fa6b73845f7563b1fc788sf but WITHOUT ANY WARRANTY; without even the implied warranty of
50c04f297d76a57ead2fa6b73845f7563b1fc788sf MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50c04f297d76a57ead2fa6b73845f7563b1fc788sf GNU General Public License for more details.
50c04f297d76a57ead2fa6b73845f7563b1fc788sf You should have received a copy of the GNU General Public License
50c04f297d76a57ead2fa6b73845f7563b1fc788sf along with this program. If not, see <http://www.gnu.org/licenses/>.
50c04f297d76a57ead2fa6b73845f7563b1fc788sfsss_tc_utf8_str_tolower(TALLOC_CTX *mem_ctx, const char *s)
50c04f297d76a57ead2fa6b73845f7563b1fc788sf ret = sss_tc_utf8_tolower(mem_ctx, (const uint8_t *) s, strlen(s), &nlen);
bed3c2e56e8f3328e780200466b9d009093db468sf return (char *) ret;
50c04f297d76a57ead2fa6b73845f7563b1fc788sfsss_tc_utf8_tolower(TALLOC_CTX *mem_ctx, const uint8_t *s, size_t len, size_t *_nlen)
50c04f297d76a57ead2fa6b73845f7563b1fc788sf const char *input,
50c04f297d76a57ead2fa6b73845f7563b1fc788sf DEBUG(SSSDBG_OP_FAILURE, "sss_filter_sanitize failed.\n");
bed3c2e56e8f3328e780200466b9d009093db468sf *lc_sanitized = sss_tc_utf8_str_tolower(mem_ctx, *sanitized);
50c04f297d76a57ead2fa6b73845f7563b1fc788sf "talloc_strdup" :
50c04f297d76a57ead2fa6b73845f7563b1fc788sf "sss_tc_utf8_str_tolower");