Subversion
svn_md5.h
Go to the documentation of this file.
00001 /**
00002  * @copyright
00003  * ====================================================================
00004  *    Licensed to the Apache Software Foundation (ASF) under one
00005  *    or more contributor license agreements.  See the NOTICE file
00006  *    distributed with this work for additional information
00007  *    regarding copyright ownership.  The ASF licenses this file
00008  *    to you under the Apache License, Version 2.0 (the
00009  *    "License"); you may not use this file except in compliance
00010  *    with the License.  You may obtain a copy of the License at
00011  *
00012  *      http://www.apache.org/licenses/LICENSE-2.0
00013  *
00014  *    Unless required by applicable law or agreed to in writing,
00015  *    software distributed under the License is distributed on an
00016  *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00017  *    KIND, either express or implied.  See the License for the
00018  *    specific language governing permissions and limitations
00019  *    under the License.
00020  * ====================================================================
00021  * @endcopyright
00022  *
00023  * @file svn_md5.h
00024  * @brief Converting and comparing MD5 checksums.
00025  */
00026 
00027 #ifndef SVN_MD5_H
00028 #define SVN_MD5_H
00029 
00030 #include <apr_pools.h>  /* for apr_pool_t */
00031 
00032 #include "svn_types.h"  /* for svn_boolean_t */
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif /* __cplusplus */
00037 
00038 
00039 
00040 /**
00041  * The MD5 digest for the empty string.
00042  *
00043  * @deprecated Provided for backward compatibility with the 1.5 API.
00044  * */
00045 SVN_DEPRECATED
00046 const unsigned char *
00047 svn_md5_empty_string_digest(void);
00048 
00049 
00050 /**
00051  * Return the hex representation of @a digest, which must be
00052  * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
00053  *
00054  * @deprecated Provided for backward compatibility with the 1.5 API.
00055  */
00056 SVN_DEPRECATED
00057 const char *
00058 svn_md5_digest_to_cstring_display(const unsigned char digest[],
00059                                   apr_pool_t *pool);
00060 
00061 
00062 /**
00063  * Return the hex representation of @a digest, which must be
00064  * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
00065  * If @a digest is all zeros, then return NULL.
00066  *
00067  * @deprecated Provided for backward compatibility with the 1.5 API.
00068  */
00069 SVN_DEPRECATED
00070 const char *
00071 svn_md5_digest_to_cstring(const unsigned char digest[],
00072                           apr_pool_t *pool);
00073 
00074 
00075 /**
00076  * Compare digests @a d1 and @a d2, each @c APR_MD5_DIGESTSIZE bytes long.
00077  * If neither is all zeros, and they do not match, then return FALSE;
00078  * else return TRUE.
00079  *
00080  * @deprecated Provided for backward compatibility with the 1.5 API.
00081  */
00082 SVN_DEPRECATED
00083 svn_boolean_t
00084 svn_md5_digests_match(const unsigned char d1[],
00085                       const unsigned char d2[]);
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif /* __cplusplus */
00090 
00091 #endif /* SVN_MD5_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines