Subversion
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
subversion
include
svn_md5.h
Go to the documentation of this file.
1
/**
2
* @copyright
3
* ====================================================================
4
* Copyright (c) 2000-2004, 2008 CollabNet. All rights reserved.
5
*
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.
11
*
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
17
*
18
* @file svn_md5.h
19
* @brief Converting and comparing MD5 checksums.
20
*/
21
22
#ifndef SVN_MD5_H
23
#define SVN_MD5_H
24
25
#include <apr_pools.h>
/* for apr_pool_t */
26
27
#include "
svn_types.h
"
/* for svn_boolean_t */
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
/* __cplusplus */
32
33
34
35
/**
36
* The MD5 digest for the empty string.
37
*
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
);
43
44
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.
48
*
49
* @deprecated Provided for backward compatibility with the 1.5 API.
50
*/
51
SVN_DEPRECATED
52
const
char
*
53
svn_md5_digest_to_cstring_display
(
const
unsigned
char
digest[],
54
apr_pool_t *pool);
55
56
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.
61
*
62
* @deprecated Provided for backward compatibility with the 1.5 API.
63
*/
64
SVN_DEPRECATED
65
const
char
*
66
svn_md5_digest_to_cstring
(
const
unsigned
char
digest[],
67
apr_pool_t *pool);
68
69
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.
74
*
75
* @deprecated Provided for backward compatibility with the 1.5 API.
76
*/
77
SVN_DEPRECATED
78
svn_boolean_t
79
svn_md5_digests_match
(
const
unsigned
char
d1[],
80
const
unsigned
char
d2[]);
81
82
#ifdef __cplusplus
83
}
84
#endif
/* __cplusplus */
85
86
#endif
/* SVN_MD5_H */
Generated on Tue Mar 1 2016 23:22:46 for Subversion by
1.8.4