Skip to content

Commit

Permalink
Move PasswordCollector out of SSLContext
Browse files Browse the repository at this point in the history
Summary: Moves PasswordCollector to its own file.

Reviewed By: Gownta

Differential Revision: D54527808

fbshipit-source-id: 9958ed8e9ed87614b309c63a8cde2ba1dbf2df0d
  • Loading branch information
abakiaydin authored and facebook-github-bot committed Mar 14, 2024
1 parent 129781e commit 8638b10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions wangle/ssl/SSLUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
#include <folly/Format.h>
#include <folly/Memory.h>
#include <folly/io/async/AsyncSSLSocket.h>
#include <folly/ssl/OpenSSLPtrTypes.h>

#include <folly/portability/OpenSSL.h>
#include <folly/ssl/OpenSSLPtrTypes.h>

namespace wangle {

Expand Down Expand Up @@ -207,7 +206,7 @@ folly::Optional<std::string> SSLUtil::decryptOpenSSLEncFilePassString(

folly::Optional<std::string> SSLUtil::decryptOpenSSLEncFilePassFile(
const std::string& filename,
const folly::PasswordCollector& pwdCollector,
const folly::ssl::PasswordCollector& pwdCollector,
const EVP_CIPHER* cipher,
const EVP_MD* digest) {
// Get password as a string and call decryptFilePasswordString()
Expand Down
6 changes: 3 additions & 3 deletions wangle/ssl/SSLUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
#include <mutex>

#include <folly/String.h>
#include <folly/io/async/SSLContext.h>
#include <folly/ssl/OpenSSLPtrTypes.h>
#include <folly/ssl/PasswordCollector.h>

namespace folly {
class AsyncSSLSocket;
}
} // namespace folly

namespace wangle {

Expand Down Expand Up @@ -222,7 +222,7 @@ class SSLUtil {
*/
static folly::Optional<std::string> decryptOpenSSLEncFilePassFile(
const std::string& filename,
const folly::PasswordCollector& pwdCollector,
const folly::ssl::PasswordCollector& pwdCollector,
const EVP_CIPHER* cipher,
const EVP_MD* digest);
};
Expand Down

0 comments on commit 8638b10

Please # to comment.