Success build TortoiseMerge.
[TortoiseGit.git] / src / TortoiseMerge / libsvn_diff / svn_md5.h
blob8bf35c78978b5054dc412ca52c1e3e5abc142e94
1 /**
2 * @copyright
3 * ====================================================================
4 * Copyright (c) 2000-2004, 2008 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
16 * @endcopyright
18 * @file svn_md5.h
19 * @brief Converting and comparing MD5 checksums.
22 #ifndef SVN_MD5_H
23 #define SVN_MD5_H
25 #include <apr_pools.h> /* for apr_pool_t */
27 #include "svn_types.h" /* for svn_boolean_t */
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
35 /**
36 * The MD5 digest for the empty string.
38 * @deprecated Provided for backward compatibility with the 1.5 API.
39 * */
40 SVN_DEPRECATED
41 const unsigned char *
42 svn_md5_empty_string_digest(void);
45 /**
46 * Return the hex representation of @a digest, which must be
47 * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
49 * @deprecated Provided for backward compatibility with the 1.5 API.
51 SVN_DEPRECATED
52 const char *
53 svn_md5_digest_to_cstring_display(const unsigned char digest[],
54 apr_pool_t *pool);
57 /**
58 * Return the hex representation of @a digest, which must be
59 * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
60 * If @a digest is all zeros, then return NULL.
62 * @deprecated Provided for backward compatibility with the 1.5 API.
64 SVN_DEPRECATED
65 const char *
66 svn_md5_digest_to_cstring(const unsigned char digest[],
67 apr_pool_t *pool);
70 /**
71 * Compare digests @a d1 and @a d2, each @c APR_MD5_DIGESTSIZE bytes long.
72 * If neither is all zeros, and they do not match, then return FALSE;
73 * else return TRUE.
75 * @deprecated Provided for backward compatibility with the 1.5 API.
77 SVN_DEPRECATED
78 svn_boolean_t
79 svn_md5_digests_match(const unsigned char d1[],
80 const unsigned char d2[]);
82 #ifdef __cplusplus
84 #endif /* __cplusplus */
86 #endif /* SVN_MD5_H */