util_md5.h revision 2eaf6dbe7ea643b3a2b8e1973d9684fac6372c46
78cd48acd325773619d78ac0d7263a99a8922faend/* ====================================================================
b0fb330a8581c8bfab5e523084f9f39264a52b12gstein * The Apache Software License, Version 1.1
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Copyright (c) 2000 The Apache Software Foundation. All rights
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * reserved.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Redistribution and use in source and binary forms, with or without
b0fb330a8581c8bfab5e523084f9f39264a52b12gstein * modification, are permitted provided that the following conditions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * are met:
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 1. Redistributions of source code must retain the above copyright
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * notice, this list of conditions and the following disclaimer.
b0fb330a8581c8bfab5e523084f9f39264a52b12gstein * 2. Redistributions in binary form must reproduce the above copyright
f4c310fd2555c6faca1f980f00b161eadb089023gstein * notice, this list of conditions and the following disclaimer in
f4c310fd2555c6faca1f980f00b161eadb089023gstein * the documentation and/or other materials provided with the
f4c310fd2555c6faca1f980f00b161eadb089023gstein * distribution.
f4c310fd2555c6faca1f980f00b161eadb089023gstein * 3. The end-user documentation included with the redistribution,
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein * if any, must include the following acknowledgment:
1f6e6566a4ce31a0b95d5400c36d0aaff7a6e94agstein * "This product includes software developed by the
8a46775d163c06a8c51d1b0a3f2edfde945cb1d8stoddard * Apache Software Foundation (http://www.apache.org/)."
2fc50921b88defeb7127985dfe4b4130175e069ejwoolley * Alternately, this acknowledgment may appear in the software itself,
f5ec9b038bb9db933072ba2c0a8e7bb2a3cedbdagstein * if and wherever such third-party acknowledgments normally appear.
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein * 4. The names "Apache" and "Apache Software Foundation" must
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein * not be used to endorse or promote products derived from this
cccd31fa4a72fe23cc3249c06db181b274a55a69gstein * software without prior written permission. For written
f4c310fd2555c6faca1f980f00b161eadb089023gstein * permission, please contact apache@apache.org.
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe * 5. Products derived from this software may not be called "Apache",
f4c310fd2555c6faca1f980f00b161eadb089023gstein * nor may "Apache" appear in their name, without prior written
f4c310fd2555c6faca1f980f00b161eadb089023gstein * permission of the Apache Software Foundation.
f5ec9b038bb9db933072ba2c0a8e7bb2a3cedbdagstein * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
f4c310fd2555c6faca1f980f00b161eadb089023gstein * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
f4c310fd2555c6faca1f980f00b161eadb089023gstein * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
f4c310fd2555c6faca1f980f00b161eadb089023gstein * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
f4c310fd2555c6faca1f980f00b161eadb089023gstein * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
f4c310fd2555c6faca1f980f00b161eadb089023gstein * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
6f15570e3adc0faf87bf55f70857028276fc9e32wrowe * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
f4c310fd2555c6faca1f980f00b161eadb089023gstein * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
f4c310fd2555c6faca1f980f00b161eadb089023gstein * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
f4c310fd2555c6faca1f980f00b161eadb089023gstein * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
f4c310fd2555c6faca1f980f00b161eadb089023gstein * SUCH DAMAGE.
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm * ====================================================================
f4c310fd2555c6faca1f980f00b161eadb089023gstein * This software consists of voluntary contributions made by many
f4c310fd2555c6faca1f980f00b161eadb089023gstein * individuals on behalf of the Apache Software Foundation. For more
f4c310fd2555c6faca1f980f00b161eadb089023gstein * information on the Apache Software Foundation, please see
52c1d304b1bd8e05da40a7cded2ecb9f0ba614c5gstein * Portions of this software are based upon public domain software
52c1d304b1bd8e05da40a7cded2ecb9f0ba614c5gstein * originally written at the National Center for Supercomputing Applications,
52c1d304b1bd8e05da40a7cded2ecb9f0ba614c5gstein * University of Illinois, Urbana-Champaign.
707ecf9559338ec06b24334bc9abcca670325cc4gsteinextern "C" {
f4c310fd2555c6faca1f980f00b161eadb089023gsteinAPI_EXPORT(char *) ap_md5(ap_pool_t *a, const unsigned char *string);
f4c310fd2555c6faca1f980f00b161eadb089023gsteinAPI_EXPORT(char *) ap_md5_binary(ap_pool_t *a, const unsigned char *buf, int len);
f4c310fd2555c6faca1f980f00b161eadb089023gsteinAPI_EXPORT(char *) ap_md5contextTo64(ap_pool_t *p, ap_md5_ctx_t *context);
707ecf9559338ec06b24334bc9abcca670325cc4gsteinAPI_EXPORT(char *) ap_md5digest(ap_pool_t *p, ap_file_t *infile,
707ecf9559338ec06b24334bc9abcca670325cc4gsteinAPI_EXPORT(char *) ap_md5digest(ap_pool_t *p, ap_file_t *infile);
707ecf9559338ec06b24334bc9abcca670325cc4gstein#endif /* !APACHE_UTIL_MD5_H */