Subversion 1.6.16

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>  /* for apr_pool_t */
00026 
00027 #include "svn_types.h"  /* for svn_boolean_t */
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif /* __cplusplus */
00032 
00033 
00034 
00035 /**
00036  * The MD5 digest for the empty string.
00037  *
00038  * @deprecated Provided for backward compatibility with the 1.5 API.
00039  * */
00040 SVN_DEPRECATED
00041 const unsigned char *
00042 svn_md5_empty_string_digest(void);
00043 
00044 
00045 /**
00046  * Return the hex representation of @a digest, which must be
00047  * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
00048  *
00049  * @deprecated Provided for backward compatibility with the 1.5 API.
00050  */
00051 SVN_DEPRECATED
00052 const char *
00053 svn_md5_digest_to_cstring_display(const unsigned char digest[],
00054                                   apr_pool_t *pool);
00055 
00056 
00057 /**
00058  * Return the hex representation of @a digest, which must be
00059  * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
00060  * If @a digest is all zeros, then return NULL.
00061  *
00062  * @deprecated Provided for backward compatibility with the 1.5 API.
00063  */
00064 SVN_DEPRECATED
00065 const char *
00066 svn_md5_digest_to_cstring(const unsigned char digest[],
00067                           apr_pool_t *pool);
00068 
00069 
00070 /**
00071  * Compare digests @a d1 and @a d2, each @c APR_MD5_DIGESTSIZE bytes long.
00072  * If neither is all zeros, and they do not match, then return FALSE;
00073  * else return TRUE.
00074  *
00075  * @deprecated Provided for backward compatibility with the 1.5 API.
00076  */
00077 SVN_DEPRECATED
00078 svn_boolean_t
00079 svn_md5_digests_match(const unsigned char d1[],
00080                       const unsigned char d2[]);
00081 
00082 #ifdef __cplusplus
00083 }
00084 #endif /* __cplusplus */
00085 
00086 #endif /* SVN_MD5_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines