security: IMPORTANT CHANGE!! Change Validator constructor to accept Face& instead of shared_ptr<Face>
The old API is kept as deprecated, but will be removed as soon as all
known applications are checked and updated to use new API.
Refs: #1481
Change-Id: Iba0f92b3a3cd48235688f52ab89b2d1f0be9124b
diff --git a/src/security/validator-regex.hpp b/src/security/validator-regex.hpp
index fddbb0a..fb2572b 100644
--- a/src/security/validator-regex.hpp
+++ b/src/security/validator-regex.hpp
@@ -31,7 +31,14 @@
static const shared_ptr<CertificateCache> DEFAULT_CERTIFICATE_CACHE;
- ValidatorRegex(shared_ptr<Face> face,
+ ValidatorRegex(Face& face,
+ shared_ptr<CertificateCache> certificateCache = DEFAULT_CERTIFICATE_CACHE,
+ const int stepLimit = 3);
+
+ /**
+ * \deprecated Use the other version of the constructor
+ */
+ ValidatorRegex(const shared_ptr<Face>& face,
shared_ptr<CertificateCache> certificateCache = DEFAULT_CERTIFICATE_CACHE,
const int stepLimit = 3);