1142425Snectar/* crypto/o_str.h -*- mode:C; c-file-style: "eay" -*- */ 2296341Sdelphij/* 3296341Sdelphij * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project 4296341Sdelphij * 2003. 5142425Snectar */ 6142425Snectar/* ==================================================================== 7142425Snectar * Copyright (c) 2003 The OpenSSL Project. All rights reserved. 8142425Snectar * 9142425Snectar * Redistribution and use in source and binary forms, with or without 10142425Snectar * modification, are permitted provided that the following conditions 11142425Snectar * are met: 12142425Snectar * 13142425Snectar * 1. Redistributions of source code must retain the above copyright 14296341Sdelphij * notice, this list of conditions and the following disclaimer. 15142425Snectar * 16142425Snectar * 2. Redistributions in binary form must reproduce the above copyright 17142425Snectar * notice, this list of conditions and the following disclaimer in 18142425Snectar * the documentation and/or other materials provided with the 19142425Snectar * distribution. 20142425Snectar * 21142425Snectar * 3. All advertising materials mentioning features or use of this 22142425Snectar * software must display the following acknowledgment: 23142425Snectar * "This product includes software developed by the OpenSSL Project 24142425Snectar * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 25142425Snectar * 26142425Snectar * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 27142425Snectar * endorse or promote products derived from this software without 28142425Snectar * prior written permission. For written permission, please contact 29142425Snectar * licensing@OpenSSL.org. 30142425Snectar * 31142425Snectar * 5. Products derived from this software may not be called "OpenSSL" 32142425Snectar * nor may "OpenSSL" appear in their names without prior written 33142425Snectar * permission of the OpenSSL Project. 34142425Snectar * 35142425Snectar * 6. Redistributions of any form whatsoever must retain the following 36142425Snectar * acknowledgment: 37142425Snectar * "This product includes software developed by the OpenSSL Project 38142425Snectar * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 39142425Snectar * 40142425Snectar * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 41142425Snectar * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42142425Snectar * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 43142425Snectar * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44142425Snectar * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45142425Snectar * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 46142425Snectar * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 47142425Snectar * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48142425Snectar * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49142425Snectar * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 50142425Snectar * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51142425Snectar * OF THE POSSIBILITY OF SUCH DAMAGE. 52142425Snectar * ==================================================================== 53142425Snectar * 54142425Snectar * This product includes cryptographic software written by Eric Young 55142425Snectar * (eay@cryptsoft.com). This product includes software written by Tim 56142425Snectar * Hudson (tjh@cryptsoft.com). 57142425Snectar * 58142425Snectar */ 59142425Snectar 60142425Snectar#ifndef HEADER_O_STR_H 61296341Sdelphij# define HEADER_O_STR_H 62142425Snectar 63296341Sdelphij# include <stddef.h> /* to get size_t */ 64142425Snectar 65142425Snectarint OPENSSL_strcasecmp(const char *str1, const char *str2); 66142425Snectarint OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n); 67296341Sdelphijint OPENSSL_memcmp(const void *p1, const void *p2, size_t n); 68142425Snectar 69142425Snectar#endif 70