]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors | |
3 | * | |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
9 | #ifndef SQUID_STOREMETAMD5_H | |
10 | #define SQUID_STOREMETAMD5_H | |
11 | ||
12 | #include "StoreMeta.h" | |
13 | /* for STORE_META_KEY_MD5 */ | |
14 | #include "enums.h" | |
15 | ||
16 | class StoreMetaMD5 : public StoreMeta | |
17 | { | |
18 | MEMPROXY_CLASS(StoreMetaMD5); | |
19 | ||
20 | public: | |
21 | char getType() const {return STORE_META_KEY_MD5;} | |
22 | ||
23 | bool validLength(int) const; | |
24 | bool checkConsistency(StoreEntry *) const; | |
25 | ||
26 | private: | |
27 | static int md5_mismatches; | |
28 | }; | |
29 | ||
30 | #endif /* SQUID_STOREMETAMD5_H */ | |
31 |