svn_md5.h File Reference

Converting and comparing MD5 checksums. More...

#include <apr_pools.h>
#include <apr_md5.h>
#include "svn_error.h"

Go to the source code of this file.

Functions

const unsigned char * svn_md5_empty_string_digest (void)
 The MD5 digest for the empty string.
const char * svn_md5_digest_to_cstring_display (const unsigned char digest[], apr_pool_t *pool)
 Return the hex representation of digest, which must be APR_MD5_DIGESTSIZE bytes long, allocating the string in pool.
const char * svn_md5_digest_to_cstring (const unsigned char digest[], apr_pool_t *pool)
 Return the hex representation of digest, which must be APR_MD5_DIGESTSIZE bytes long, allocating the string in pool.
svn_boolean_t svn_md5_digests_match (const unsigned char d1[], const unsigned char d2[])
 Compare digests d1 and d2, each APR_MD5_DIGESTSIZE bytes long.


Detailed Description

Converting and comparing MD5 checksums.

Definition in file svn_md5.h.


Function Documentation

const char* svn_md5_digest_to_cstring ( const unsigned char  digest[],
apr_pool_t *  pool 
)

Return the hex representation of digest, which must be APR_MD5_DIGESTSIZE bytes long, allocating the string in pool.

If digest is all zeros, then return NULL.

svn_boolean_t svn_md5_digests_match ( const unsigned char  d1[],
const unsigned char  d2[] 
)

Compare digests d1 and d2, each APR_MD5_DIGESTSIZE bytes long.

If neither is all zeros, and they do not match, then return FALSE; else return TRUE.

const unsigned char* svn_md5_empty_string_digest ( void   ) 

The MD5 digest for the empty string.


Generated on Fri Aug 7 01:13:14 2009 for Subversion by  doxygen 1.5.6