diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-02-01 21:32:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-02-01 21:32:47 +0900 |
| commit | e1739c8ee79b8ac5a47fc6d8f0671ee7b517173d (patch) | |
| tree | 878bdd72359949e295ff7843cdb1bde46cb16758 /src | |
| parent | feca60fce63ffd7c7b165f9660249714ebfd8f0b (diff) | |
Fix compile error without SSL/TLS enabled
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.cc | 2 | ||||
| -rw-r--r-- | src/util.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc index ea2767f7..bdfd9fce 100644 --- a/src/util.cc +++ b/src/util.cc @@ -1974,6 +1974,7 @@ bool strless(const char* a, const char* b) return strcmp(a, b) < 0; } +#ifdef ENABLE_SSL TLSVersion toTLSVersion(const std::string& ver) { if(ver == A2_V_SSL3) { @@ -1990,6 +1991,7 @@ TLSVersion toTLSVersion(const std::string& ver) } return TLS_PROTO_TLS10; } +#endif // ENABLE_SSL } // namespace util @@ -884,7 +884,9 @@ bool noProxyDomainMatch(const std::string& hostname, const std::string& domain); // Checks hostname matches pattern as described in RFC 6125. bool tlsHostnameMatch(const std::string& pattern, const std::string& hostname); +#ifdef ENABLE_SSL TLSVersion toTLSVersion(const std::string& ver); +#endif // ENABLE_SSL } // namespace util |
