mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 09:03:46 +00:00
Fix compile error without SSL/TLS enabled
This commit is contained in:
parent
feca60fce6
commit
e1739c8ee7
@ -1974,6 +1974,7 @@ bool strless(const char* a, const char* b)
|
|||||||
return strcmp(a, b) < 0;
|
return strcmp(a, b) < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_SSL
|
||||||
TLSVersion toTLSVersion(const std::string& ver)
|
TLSVersion toTLSVersion(const std::string& ver)
|
||||||
{
|
{
|
||||||
if(ver == A2_V_SSL3) {
|
if(ver == A2_V_SSL3) {
|
||||||
@ -1990,6 +1991,7 @@ TLSVersion toTLSVersion(const std::string& ver)
|
|||||||
}
|
}
|
||||||
return TLS_PROTO_TLS10;
|
return TLS_PROTO_TLS10;
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_SSL
|
||||||
|
|
||||||
} // namespace util
|
} // 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.
|
// Checks hostname matches pattern as described in RFC 6125.
|
||||||
bool tlsHostnameMatch(const std::string& pattern, const std::string& hostname);
|
bool tlsHostnameMatch(const std::string& pattern, const std::string& hostname);
|
||||||
|
|
||||||
|
#ifdef ENABLE_SSL
|
||||||
TLSVersion toTLSVersion(const std::string& ver);
|
TLSVersion toTLSVersion(const std::string& ver);
|
||||||
|
#endif // ENABLE_SSL
|
||||||
|
|
||||||
} // namespace util
|
} // namespace util
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user