proxygen
|
#include <SSLContext.h>
Public Member Functions | |
virtual | ~PasswordCollector ()=default |
virtual void | getPassword (std::string &password, int size) const =0 |
virtual std::string | describe () const =0 |
Override the default password collector.
Definition at line 47 of file SSLContext.h.
|
virtualdefault |
|
pure virtual |
Return a description of this collector for logging purposes
Implemented in folly::PasswordInFile.
Referenced by folly::operator<<().
|
pure virtual |
Interface for customizing how to collect private key password.
By default, OpenSSL prints a prompt on screen and request for password while loading private key. To implement a custom password collector, implement this interface and register it with SSLContext.
password | Pass collected password back to OpenSSL |
size | Maximum length of password including nullptr character |
Implemented in folly::PasswordInFile.