mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-11-28 09:40:48 +01:00
22 lines
534 B
C++
22 lines
534 B
C++
#include "cpr/proxyauth.h"
|
|
#include "cpr/util.h"
|
|
|
|
namespace cpr {
|
|
EncodedAuthentication::~EncodedAuthentication() noexcept {
|
|
util::secureStringClear(auth_string_);
|
|
}
|
|
|
|
const char* EncodedAuthentication::GetAuthString() const noexcept {
|
|
return auth_string_.c_str();
|
|
}
|
|
|
|
bool ProxyAuthentication::has(const std::string& protocol) const {
|
|
return proxyAuth_.count(protocol) > 0;
|
|
}
|
|
|
|
const char* ProxyAuthentication::operator[](const std::string& protocol) {
|
|
return proxyAuth_[protocol].GetAuthString();
|
|
}
|
|
|
|
} // namespace cpr
|