1251881Speter/* 2251881Speter * md5.c: checksum routines 3251881Speter * 4251881Speter * ==================================================================== 5251881Speter * Licensed to the Apache Software Foundation (ASF) under one 6251881Speter * or more contributor license agreements. See the NOTICE file 7251881Speter * distributed with this work for additional information 8251881Speter * regarding copyright ownership. The ASF licenses this file 9251881Speter * to you under the Apache License, Version 2.0 (the 10251881Speter * "License"); you may not use this file except in compliance 11251881Speter * with the License. You may obtain a copy of the License at 12251881Speter * 13251881Speter * http://www.apache.org/licenses/LICENSE-2.0 14251881Speter * 15251881Speter * Unless required by applicable law or agreed to in writing, 16251881Speter * software distributed under the License is distributed on an 17251881Speter * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18251881Speter * KIND, either express or implied. See the License for the 19251881Speter * specific language governing permissions and limitations 20251881Speter * under the License. 21251881Speter * ==================================================================== 22251881Speter */ 23251881Speter 24251881Speter 25251881Speter#include <apr_md5.h> 26299742Sdim 27299742Sdim#include "svn_checksum.h" 28251881Speter#include "svn_md5.h" 29299742Sdim#include "checksum.h" 30251881Speter 31251881Speter 32251881Speter 33251881Speter/* These are all deprecated, and just wrap the internal functions defined 34251881Speter above. */ 35251881Speterconst unsigned char * 36251881Spetersvn_md5_empty_string_digest(void) 37251881Speter{ 38299742Sdim return svn__empty_string_digest(svn_checksum_md5); 39251881Speter} 40251881Speter 41251881Speterconst char * 42251881Spetersvn_md5_digest_to_cstring_display(const unsigned char digest[], 43251881Speter apr_pool_t *pool) 44251881Speter{ 45299742Sdim return svn__digest_to_cstring_display(digest, APR_MD5_DIGESTSIZE, pool); 46251881Speter} 47251881Speter 48251881Speterconst char * 49251881Spetersvn_md5_digest_to_cstring(const unsigned char digest[], apr_pool_t *pool) 50251881Speter{ 51299742Sdim return svn__digest_to_cstring(digest, APR_MD5_DIGESTSIZE, pool); 52251881Speter} 53251881Speter 54251881Spetersvn_boolean_t 55251881Spetersvn_md5_digests_match(const unsigned char d1[], const unsigned char d2[]) 56251881Speter{ 57299742Sdim return svn__digests_match(d1, d2, APR_MD5_DIGESTSIZE); 58251881Speter} 59