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-config.hpp b/src/security/validator-config.hpp
index 9551fa5..bedca53 100644
--- a/src/security/validator-config.hpp
+++ b/src/security/validator-config.hpp
@@ -29,8 +29,16 @@
static const shared_ptr<CertificateCache> DEFAULT_CERTIFICATE_CACHE;
- ValidatorConfig(shared_ptr<Face> face,
- shared_ptr<CertificateCache> certificateCache = DEFAULT_CERTIFICATE_CACHE,
+ explicit
+ ValidatorConfig(Face& face,
+ const shared_ptr<CertificateCache>& certificateCache = DEFAULT_CERTIFICATE_CACHE,
+ const int stepLimit = 10);
+
+ /**
+ * \deprecated Use the other version of the constructor
+ */
+ ValidatorConfig(const shared_ptr<Face>& face,
+ const shared_ptr<CertificateCache>& certificateCache = DEFAULT_CERTIFICATE_CACHE,
const int stepLimit = 10);
virtual