This file is indexed.

/usr/include/cyrus/md5.h is in cyrus-dev-2.4 2.4.17+caldav~beta9-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* MD5.H - wrapper for MD5 message digest routines
 */
#ifndef _CYRUS_MD5_H_
#define _CYRUS_MD5_H_ 1

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/*
 * This is gnarly, sorry :(  We might have been configured to build
 * with OpenSSL, or we might not.  Some older versions of OpenSSL
 * will drag in their own md5.h when we include <openssl/ssl.h>, but
 * newer ones don't.  The OpenSSL header might be included before or
 * after this header file is included.
 *
 * So, we *might* have a definition of the MD5_CTX structure from
 * OpenSSL, now or later, or not.
 *
 * LibSASL also has MD5 routines, declared in <sasl/md5.h>, and that
 * header also defines a MD5_CTX structure.  So we can't include
 * both md5.h's, but we need one.
 *
 * So we explicitly include the OpenSSL md5.h if OpenSSL is configured
 * in, otherwise we fallback to the libSASL routines.  Note that we
 * cannot build without libSASL anyway, so we don't need to fallback
 * any further.
 *
 * The MD5 API varies slightly from library to library.  Here's a
 * description of the API that Cyrus is expecting and that we try
 * to provide on top of whatever the library has.
 *
 * typedef struct ... { ... } MD5_CTX;
 * void MD5Init(MD5_CTX *);
 * void MD5Update(MD5_CTX *, const void *data, size_t len);
 * void MD5Final(unsigned char[MD5_DIGEST_LENGTH], MD5_CTX *);
 */

#ifdef HAVE_SSL
#include <openssl/md5.h>

#define MD5Init			    MD5_Init
#define MD5Update		    MD5_Update
#define MD5Final		    MD5_Final

#else

#include <sasl/md5global.h>
#include <sasl/md5.h>

#define MD5Init			    _sasl_MD5Init
#define MD5Update		    _sasl_MD5Update
#define MD5Final		    _sasl_MD5Final

#endif /* !HAVE_SSL */

#ifndef MD5_DIGEST_LENGTH
#define MD5_DIGEST_LENGTH 16
#endif

#endif /* _CYRUS_MD5_H_ */