const char * svn_checksum_to_cstring(const svn_checksum_t *checksum, apr_pool_t *pool) { switch (checksum->kind) { case svn_checksum_md5: return svn_md5__digest_to_cstring(checksum->digest, pool); case svn_checksum_sha1: return svn_sha1__digest_to_cstring(checksum->digest, pool); default: /* We really shouldn't get here, but if we do... */ return NULL; } }
const char * svn_md5_digest_to_cstring(const unsigned char digest[], apr_pool_t *pool) { return svn_md5__digest_to_cstring(digest, pool); }