diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/AppleTLSContext.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/AppleTLSContext.h')
| -rw-r--r-- | src/AppleTLSContext.h | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/AppleTLSContext.h b/src/AppleTLSContext.h index 6c72e5e9..800b8d46 100644 --- a/src/AppleTLSContext.h +++ b/src/AppleTLSContext.h @@ -46,12 +46,12 @@ namespace aria2 { -class AppleTLSContext : public TLSContext -{ +class AppleTLSContext : public TLSContext { public: AppleTLSContext(TLSSessionSide side, TLSVersion ver) - : side_(side), minTLSVer_(ver), verifyPeer_(true), credentials_(nullptr) - {} + : side_(side), minTLSVer_(ver), verifyPeer_(true), credentials_(nullptr) + { + } virtual ~AppleTLSContext(); @@ -59,28 +59,16 @@ public: virtual bool addCredentialFile(const std::string& certfile, const std::string& keyfile) CXX11_OVERRIDE; - virtual bool addSystemTrustedCACerts() CXX11_OVERRIDE - { - return true; - } + virtual bool addSystemTrustedCACerts() CXX11_OVERRIDE { return true; } // certfile can contain multiple certificates. virtual bool addTrustedCACertFile(const std::string& certfile) CXX11_OVERRIDE; - virtual bool good() const CXX11_OVERRIDE - { - return true; - } + virtual bool good() const CXX11_OVERRIDE { return true; } - virtual TLSSessionSide getSide() const CXX11_OVERRIDE - { - return side_; - } + virtual TLSSessionSide getSide() const CXX11_OVERRIDE { return side_; } - virtual bool getVerifyPeer() const CXX11_OVERRIDE - { - return verifyPeer_; - } + virtual bool getVerifyPeer() const CXX11_OVERRIDE { return verifyPeer_; } virtual void setVerifyPeer(bool verify) CXX11_OVERRIDE { @@ -89,10 +77,7 @@ public: SecIdentityRef getCredentials(); - TLSVersion getMinTLSVersion() const - { - return minTLSVer_; - } + TLSVersion getMinTLSVersion() const { return minTLSVer_; } private: TLSSessionSide side_; |
