diff options
Diffstat (limited to 'src/NetrcAuthResolver.h')
| -rw-r--r-- | src/NetrcAuthResolver.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/NetrcAuthResolver.h b/src/NetrcAuthResolver.h index bf19559f..290dcbe7 100644 --- a/src/NetrcAuthResolver.h +++ b/src/NetrcAuthResolver.h @@ -45,8 +45,12 @@ class NetrcAuthResolver : public AbstractAuthResolver { private: SharedHandle<Netrc> _netrc; + bool _ignoreDefault; + SharedHandle<AuthConfig> findNetrcAuthenticator(const std::string& hostname) const; public: + NetrcAuthResolver(); + virtual ~NetrcAuthResolver() {} virtual SharedHandle<AuthConfig> resolveAuthConfig(const std::string& hostname); @@ -54,6 +58,12 @@ public: void setNetrc(const SharedHandle<Netrc>& netrc); SharedHandle<Netrc> getNetrc() const; + + // Ignores default token of netrc + void ignoreDefault(); + + // Uses default token of netrc + void useDefault(); }; typedef SharedHandle<NetrcAuthResolver> NetrcAuthResolverHandle; |
