This file is indexed.

/usr/include/arc/data/FileCacheHash.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
// -*- indent-tabs-mode: nil -*-

#ifndef FILE_CACHE_HASH_H_
#define FILE_CACHE_HASH_H_

#include <string>

namespace Arc {

/// FileCacheHash provides methods to make hashes from strings.
/**
 * Currently the SHA-1 hash from the openssl library is used.
 * \ingroup data
 * \headerfile FileCacheHash.h arc/data/FileCacheHash.h
 */
class FileCacheHash {

private:
  /// Maximum length of an md5 hash
  static int MAX_MD5_LENGTH;
  /// Maximum length of a sha1 hash
  static int MAX_SHA1_LENGTH;

public:
  /// Return a hash of the given URL, according to the current hash scheme.
  static std::string getHash(std::string url);
  /// Return the maximum length of a hash string.
  static int maxLength() {
    return MAX_SHA1_LENGTH;
  }
};

} // namespace Arc

#endif /*FILE_CACHE_HASH_H_*/