2 * Copyright (c) 2015, Facebook, Inc.
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
12 #include <folly/io/async/SSLContext.h> // PasswordCollector
16 class PasswordInFile: public folly::PasswordCollector {
18 explicit PasswordInFile(const std::string& file);
21 void getPassword(std::string& password, int size) override {
25 const char* getPasswordStr() const {
26 return password_.c_str();
29 std::string describe() const override {
34 std::string fileName_;
35 std::string password_;