This file is indexed.

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

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

#include <string>

namespace Arc {

class PasswordSource {
 public:
  typedef enum {
    NO_PASSWORD = 0, // No password is returned. Authoritative. Not same as empty password.
    PASSWORD = 1,     // Password is  provided. Authoritative.
    CANCEL = 2       // Request to cancel procedure which need password.
  } Result;
  virtual Result Get(std::string& password, int minsize, int maxsize) = 0;
};

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

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

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

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__