File indexing completed on 2025-02-23 04:27:36

0001 /****************************************************************************************
0002  * Copyright (c) 2006 Ian Monroe <ian@monroe.nu>                                        *
0003  *                                                                                      *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) any later           *
0007  * version.                                                                             *
0008  *                                                                                      *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0012  *                                                                                      *
0013  * You should have received a copy of the GNU General Public License along with         *
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0015  ****************************************************************************************/
0016 
0017 #ifndef __MD5_H__
0018 #define __MD5_H__
0019 
0020 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
0021 #include <inttypes.h>
0022 #else
0023 typedef unsigned int uint32_t;
0024 #endif
0025 
0026 #include "portability.h"
0027 
0028 typedef struct {
0029     uint32_t buf[4];
0030     uint32_t bits[2];
0031     unsigned char in[64];
0032     int apple_ver;
0033 } MD5_CTX;
0034 
0035 void OpenDaap_MD5Init(MD5_CTX *, int apple_ver);
0036 void OpenDaap_MD5Update(MD5_CTX *, const unsigned char *, unsigned int);
0037 void OpenDaap_MD5Final(MD5_CTX *, unsigned char digest[16]);
0038 
0039 #endif /* __WINE_MD5_H__ */