FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* Copy the hash sum calculation results from MD5_CTX, SHA1_CTX into REP.
 * Use POOL for allocations.
 */
Copy the hash sum calculation results from MD5_CTX, SHA1_CTX into REP.
Use POOL for allocations.
Copy the hash sum calculation results from MD5_CTX SHA1_CTX into REP . Use POOL for allocations .
static svn_error_t *
digests_final(representation_t *rep,
              const svn_checksum_ctx_t *md5_ctx,
              const svn_checksum_ctx_t *sha1_ctx,
              apr_pool_t *pool)
{
  svn_checksum_t *checksum;
  SVN_ERR(svn_checksum_final(&checksum, md5_ctx, pool));
  memcpy(rep->md5_digest, checksum->digest, svn_checksum_size(checksum));
  SVN_ERR(svn_checksum_final(&checksum, sha1_ctx, pool));
  rep->has_sha1 = checksum != NULL;
  if (rep->has_sha1)
    memcpy(rep->sha1_digest, checksum->digest, svn_checksum_size(checksum));
  return SVN_NO_ERROR;
}
static svn_error_t * digests_final ( representation_t * rep , const svn_checksum_ctx_t * md5_ctx , const svn_checksum_ctx_t * sha1_ctx , apr_pool_t * pool ) { svn_checksum_t * checksum ; SVN_ERR ( svn_checksum_final ( & checksum , md5_ctx , pool ) ) ; memcpy ( rep -> md5_digest , checksum -> digest , svn_checksum_size ( checksum ) ) ; SVN_ERR ( svn_checksum_final ( & checksum , sha1_ctx , pool ) ) ; rep -> has_sha1 = checksum != NULL ; if ( rep -> has_sha1 ) memcpy ( rep -> sha1_digest , checksum -> digest , svn_checksum_size ( checksum ) ) ; return SVN_NO_ERROR ; }
Copy the hash sum calculation results from MD5_CTX, SHA1_CTX into REP.
 Use POOL for allocations.
Copy the hash sum calculation results from MD5_CTX SHA1_CTX into REP . Use POOL for allocations .