diff options
author | Bin Chen <pierr.chen@gmail.com> | 2016-08-19 16:58:30 +1000 |
---|---|---|
committer | Bin Chen <pierr.chen@gmail.com> | 2016-08-19 07:02:16 +0000 |
commit | 79e714cf7d071efb33aea77d06d287854b71057f (patch) | |
tree | 2a4e672cdc2da5a232509b532394363ff0e9d189 | |
parent | 86e9b67b87e688c17dd6239e64ef49a5bf81781c (diff) | |
download | webservd-79e714cf7d071efb33aea77d06d287854b71057f.tar.gz |
webservd: remove unused header file
fake_encryptor.h was never used. Encryptor::CreateDefaultEncryptor
was used to create the specific cryptor implementation.
Change-Id: I9d261dcc6a48fa7f9bee905b7806df5b9b5dbebd
Signed-off-by: Bin Chen <pierr.chen@gmail.com>
-rw-r--r-- | webservd/fake_encryptor.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/webservd/fake_encryptor.h b/webservd/fake_encryptor.h deleted file mode 100644 index 4ae91cb..0000000 --- a/webservd/fake_encryptor.h +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#ifndef WEBSERVER_WEBSERVD_FAKE_ENCRYPTOR_H_ -#define WEBSERVER_WEBSERVD_FAKE_ENCRYPTOR_H_ - -#include <string> - -#include "webservd/encryptor.h" - -namespace webservd { - -// Encryptor which simply base64-encodes the plaintext to get the -// ciphertext. Obviously, this should be used only for testing. -class FakeEncryptor : public Encryptor { - public: - bool EncryptWithAuthentication(const std::string& plaintext, - std::string* ciphertext) override; - - bool DecryptWithAuthentication(const std::string& ciphertext, - std::string* plaintext) override; -}; - -} // namespace webservd - -#endif // WEBSERVER_WEBSERVD_FAKE_ENCRYPTOR_H_ |