svn_md5.h

Go to the documentation of this file.
00001 /**
00002  * @copyright
00003  * ====================================================================
00004  * Copyright (c) 2000-2004, 2008 CollabNet.  All rights reserved.
00005  *
00006  * This software is licensed as described in the file COPYING, which
00007  * you should have received as part of this distribution.  The terms
00008  * are also available at http://subversion.tigris.org/license-1.html.
00009  * If newer versions of this license are posted there, you may use a
00010  * newer version instead, at your option.
00011  *
00012  * This software consists of voluntary contributions made by many
00013  * individuals.  For exact contribution history, see the revision
00014  * history and logs, available at http://subversion.tigris.org/.
00015  * ====================================================================
00016  * @endcopyright
00017  *
00018  * @file svn_md5.h
00019  * @brief Converting and comparing MD5 checksums.
00020  */
00021 
00022 #ifndef SVN_MD5_H
00023 #define SVN_MD5_H
00024 
00025 #include <apr_pools.h>
00026 #include <apr_md5.h>
00027 #include "svn_error.h"
00028 #include "svn_pools.h"
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif /* __cplusplus */
00033 
00034 
00035 
00036 /**
00037  * The MD5 digest for the empty string.
00038  *
00039  * @deprecated Provided for backward compatibility with the 1.5 API.
00040  * */
00041 SVN_DEPRECATED
00042 const unsigned char *
00043 svn_md5_empty_string_digest(void);
00044 
00045 
00046 /**
00047  * Return the hex representation of @a digest, which must be
00048  * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
00049  *
00050  * @deprecated Provided for backward compatibility with the 1.5 API.
00051  */
00052 SVN_DEPRECATED
00053 const char *
00054 svn_md5_digest_to_cstring_display(const unsigned char digest[],
00055                                   apr_pool_t *pool);
00056 
00057 
00058 /**
00059  * Return the hex representation of @a digest, which must be
00060  * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
00061  * If @a digest is all zeros, then return NULL.
00062  *
00063  * @deprecated Provided for backward compatibility with the 1.5 API.
00064  */
00065 SVN_DEPRECATED
00066 const char *
00067 svn_md5_digest_to_cstring(const unsigned char digest[],
00068                           apr_pool_t *pool);
00069 
00070 
00071 /**
00072  * Compare digests @a d1 and @a d2, each @c APR_MD5_DIGESTSIZE bytes long.
00073  * If neither is all zeros, and they do not match, then return FALSE;
00074  * else return TRUE.
00075  *
00076  * @deprecated Provided for backward compatibility with the 1.5 API.
00077  */
00078 SVN_DEPRECATED
00079 svn_boolean_t
00080 svn_md5_digests_match(const unsigned char d1[],
00081                       const unsigned char d2[]);
00082 
00083 #ifdef __cplusplus
00084 }
00085 #endif /* __cplusplus */
00086 
00087 #endif /* SVN_MD5_H */

Generated on Tue Oct 7 04:09:55 2008 for Subversion by  doxygen 1.3.9.1