This file is indexed.

/usr/include/spf2/spf.h is in libspf2-dev 1.2.10-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of either:
 * 
 *   a) The GNU Lesser General Public License as published by the Free
 *      Software Foundation; either version 2.1, or (at your option) any
 *      later version,
 * 
 *   OR
 * 
 *   b) The two-clause BSD license.
 *
 * These licenses can be found with the distribution in the file LICENSES
 */

#ifndef __GNUC__
#define __attribute__(x)
#endif


#ifndef INC_SPF
#define INC_SPF


#include "spf_lib_version.h"

#include "spf_server.h"
#include "spf_request.h"
#include "spf_response.h"
#include "spf_dns.h"
#include "spf_log.h"


#define SPF_VERSION 1
#define SPF_VER_STR "v=spf1"


/* ********************************************************************* */


/**
 * FYI only -- can't be changed without recompiling the library
 * Most error messages are under 80 characters and we don't want
 * bad/malicious input to cause huge error messages.
 */
#define SPF_C_ERR_MSG_SIZE		(2*80)
#define SPF_SMTP_COMMENT_SIZE	(4*80)
#define SPF_RECEIVED_SPF_SIZE	(6*80)
#define SPF_SYSLOG_SIZE			(10*80)




/* ********************************************************************* */

/**
 * FYI only -- can't be changed without recompiling the library
 */
#define SPF_DEFAULT_MAX_DNS_MECH 10	/**< DoS limit on SPF mechanisms.*/
#define SPF_DEFAULT_MAX_DNS_PTR	 10	/**< DoS limit on PTR records.	*/
#define SPF_DEFAULT_MAX_DNS_MX	 10	/**< DoS limit on MX records.	*/
#define SPF_DEFAULT_SANITIZE	  1
#define SPF_DEFAULT_WHITELIST	  "include:spf.trusted-forwarder.org"
#define SPF_EXP_MOD_NAME	"exp-text"
/** The default SPF explanation, if no other is provided in the
 * SPF_server_t object. */
#define SPF_DEFAULT_EXP		  "Please%_see%_http://www.openspf.org/Why?id=%{S}&ip=%{C}&receiver=%{R}"



/* ********************************************************************* */

/** SPF_strerror() translates the SPF error number into a readable string */
const char *SPF_strerror( SPF_errcode_t spf_err );


/** SPF_strresult() translates the SPF result number into a readable string */
const char *SPF_strresult( SPF_result_t result );
/** SPF_strreason() translates the SPF reason number into a readable string */
const char *SPF_strreason( SPF_reason_t reason );

/**
 * Returns the version information library. Useful if the library
 * is a shared library and may differ from when the application
 * was compiled.
 */
void SPF_get_lib_version( int *major, int *minor, int *patch );

const char *SPF_strrrtype(ns_type rr_type);

#endif