Make folly::PasswordCollector::getPassword const
[folly.git] / folly / io / async / SSLContext.h
index 4593f91804a5651f7993b7ee3505cea21763e635..a8f18620e47377de4a71d993adcce9fcd641e0d3 100644 (file)
@@ -58,7 +58,7 @@ class PasswordCollector {
    * @param password Pass collected password back to OpenSSL
    * @param size     Maximum length of password including nullptr character
    */
-  virtual void getPassword(std::string& password, int size) = 0;
+  virtual void getPassword(std::string& password, int size) const = 0;
 
   /**
    * Return a description of this collector for logging purposes