This file is indexed.

/usr/include/nussl_constants.h is in libnussl-dev 2.4.3-3.4.

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
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
/*
 ** Copyright (C) 2007-2009 INL
 ** Written by S.Tricaud <stricaud@inl.fr>
 **            L.Defert <ldefert@inl.fr>
 ** INL http://www.inl.fr/
 **
 ** NuSSL: OpenSSL / GnuTLS layer based on libneon

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License as published by the Free Software Foundation; either
   version 3 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this library; if not, write to the Free
   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
   MA 02111-1307, USA

   In addition, as a special exception, INL
   gives permission to link the code of its release of NuSSL with the
   OpenSSL project's "OpenSSL" library (or with modified versions of it
   that use the same license as the "OpenSSL" library), and distribute
   the linked executables.  You must obey the GNU General Public License
   in all respects for all of the code used other than "OpenSSL".  If you
   modify this file, you may extend this exception to your version of the
   file, but you are not obligated to do so.  If you do not wish to do
   so, delete this exception statement from your version.
 */

#ifndef __NUSSL_CONSTANTS__
#define __NUSSL_CONSTANTS__

/* Context creation modes: */
typedef enum {
	NUSSL_SSL_CTX_CLIENT,		/* client context */
	NUSSL_SSL_CTX_SERVER,		/* default server context */
	NUSSL_SSL_CTX_SERVERv2,		/* SSLv2 specific server context */
} nussl_mode_t;

typedef enum {
	NUSSL_CERT_IGNORE,
	NUSSL_CERT_REQUEST,
	NUSSL_CERT_REQUIRE,
} nussl_cert_t;

typedef enum {
	NUSSL_OK=0,		/*!< Success */
	NUSSL_ERROR,		/*!< Generic error; use nussl_get_error(session) for message */
	NUSSL_LOOKUP,		/*!< Server or proxy hostname lookup failed */
	NUSSL_AUTH,		/*!< User authentication failed on server */
	NUSSL_PROXYAUTH,	/*!< User authentication failed on proxy */
	NUSSL_CONNECT,		/*!< Could not connect to server */
	NUSSL_TIMEOUT,		/*!< Connection timed out */
	NUSSL_FAILED,		/*!< The precondition failed */
	NUSSL_RETRY,		/*!< Retry request (nussl_end_request ONLY) */
	NUSSL_REDIRECT,		/*!< See nussl_redirect.h */
} nussl_error_t;

typedef enum {
	NUSSL_SOCK_ERROR=-1,	/* Read/Write timed out */
	NUSSL_SOCK_TIMEOUT=-2,	/* Socket was closed */
	NUSSL_SOCK_CLOSED=-3,	/* Connection was reset (e.g. server crashed) */
	NUSSL_SOCK_RESET=-4,	/* Secure connection was closed without proper SSL shutdown. */
	NUSSL_SOCK_TRUNC=-5,
} ssl_sock_error_t;


/* Defined session flags: */
typedef enum nussl_session_flag_e {
	NUSSL_SESSFLAG_PERSIST = 0,	/* disable this flag to prevent use of
					 * persistent connections. */

	NUSSL_SESSFLAG_ICYPROTO,	/* enable this flag to enable support for
					 * non-HTTP ShoutCast-style "ICY" responses. */

	NUSSL_SESSFLAG_SSLv2,	/* disable this flag to disable support for
				 * SSLv2, if supported by the SSL library. */

	NUSSL_SESSFLAG_RFC4918,	/* enable this flag to enable support for
				 * RFC4918-only WebDAV features; losing
				 * backwards-compatibility with RFC2518
				 * servers. */

	NUSSL_SESSFLAG_CONNAUTH,	/* enable this flag if an awful, broken,
					 * RFC-violating, connection-based HTTP
					 * authentication scheme is in use. */

	NUSSL_SESSFLAG_TLS_SNI,	/* disable this flag to disable use of the
				 * TLS Server Name Indication extension. */

	NUSSL_SESSFLAG_IGNORE_ID_MISMATCH,	/* Enable this flag to ignore mismatch
						 * between server FQDN and certificate CN value. */

	NUSSL_SESSFLAG_LAST	/* enum sentinel value */
} nussl_session_flag;

#endif /* __NUSSL_CONSTANTS__ */