Main Page   Modules   Data Structures   File List   Data Fields   Globals  

svn_md5.h File Reference

Code for converting and comparing MD5 checksums. More...

#include <apr_pools.h>
#include <apr_md5.h>
#include "svn_error.h"
#include "svn_pools.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 (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 (unsigned const char d1[], unsigned const char d2[])
 Compare digests d1 and d2, each APR_MD5_DIGESTSIZE bytes long.


Detailed Description

Code for 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 unsigned const char    d1[],
unsigned const 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.


Generated on Wed Oct 20 01:47:46 2004 for Subversion by doxygen1.2.18