This file is indexed.

/usr/include/arc/credential/PasswordSource.h is in nordugrid-arc-dev 5.0.5-1ubuntu1.

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
#ifndef __ARC_PASSWORD_SOURCE_H__
#define __ARC_PASSWORD_SOURCE_H__

#include <string>

namespace Arc {

/** \addtogroup credential
 *  @{ */

/// Obtain password from some source
/**
 * Pure virtual class meant to be extended with a specific mechanism to obtain
 * password.
 * \since Added in 4.0.0.
 **/
class PasswordSource {
 public:
  typedef enum {
    /// No password is returned. Authoritative. Not same as empty password.
    NO_PASSWORD = 0,
    /// Password is  provided. Authoritative.
    PASSWORD = 1,
    /// Request to cancel procedure which need password.
    CANCEL = 2
  } Result;
  virtual Result Get(std::string& password, int minsize, int maxsize) = 0;
  virtual ~PasswordSource(void) { };
};

/// No password
class PasswordSourceNone: public PasswordSource {
 public:
  virtual Result Get(std::string& password, int minsize, int maxsize);
};

/// Obtain password from a string
class PasswordSourceString: public PasswordSource {
 private:
  std::string password_;
 public:
  PasswordSourceString(const std::string& password);
  virtual Result Get(std::string& password, int minsize, int maxsize);
};

/// Obtain password from stream
class PasswordSourceStream: public PasswordSource {
 private:
  std::istream* password_;
 public:
  PasswordSourceStream(std::istream* password);
  virtual Result Get(std::string& password, int minsize, int maxsize);
};

/// Obtain password through OpenSSL user interface
class PasswordSourceInteractive: public PasswordSource {
 private:
  std::string prompt_;
  bool verify_;
 public:
  PasswordSourceInteractive(const std::string& prompt, bool verify);
  virtual Result Get(std::string& password, int minsize, int maxsize);
};

/** @} */

} // namespace Arc

#endif // __ARC_PASSWORD_SOURCE_H__