This file is indexed.

/usr/include/odil/AssociationAcceptor.h is in libodil-dev 0.8.0-4build1.

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
/*************************************************************************
 * odil - Copyright (C) Universite de Strasbourg
 * Distributed under the terms of the CeCILL-B license, as published by
 * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
 * for details.
 ************************************************************************/

#ifndef _b21e4f11_9337_4612_8152_b59dedc16f18
#define _b21e4f11_9337_4612_8152_b59dedc16f18

#include <functional>
#include <string>

#include "odil/AssociationParameters.h"
#include "odil/Exception.h"
#include "odil/odil.h"

namespace odil
{

/**
 * @brief Callback to check whether the association request is acceptable.
 *
 * The callback shall return the parameters for the acceptation or throw an
 * AssociationRejected exception if the association is not acceptable.
 */
typedef
    std::function<AssociationParameters(AssociationParameters const &)>
    AssociationAcceptor;

/**
 * @brief Default association acceptor.
 *
 * Reverse the calling and called AE titles, accept the first transfer syntax
 * and the roles of each presentation context, do not check identity,
 * keep maximum length.
 */
ODIL_API
AssociationParameters
default_association_acceptor(AssociationParameters const & input);

/// @brief Exception reported when an incoming association is rejected.
struct ODIL_API AssociationRejected: public Exception
{
public:
    /// @brief Constructor.
    AssociationRejected(
        unsigned char result, unsigned char source, unsigned char reason,
        std::string const & message="Association rejected");

    /// @brief Return the rejection result.
    unsigned char get_result() const;
    
    /// @brief Set the rejection result.
    void set_result(unsigned char value);

    /// @brief Return the rejection source.
    unsigned char get_source() const;
    
    /// @brief Set the rejection source.
    void set_source(unsigned char value);

    /// @brief Return the rejection reason.
    unsigned char get_reason() const;
    
    /// @brief Set the rejection reason.
    void set_reason(unsigned char value);
private:
    unsigned char _result;
    unsigned char _source;
    unsigned char _reason;
};

}

#endif // _b21e4f11_9337_4612_8152_b59dedc16f18