From a242a6468206f9eb32d8a33a064c813122215a09 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Tue, 28 Mar 2023 12:48:12 +0200 Subject: [PATCH] isSKey mistake counter + a refactoring promise Change-Id: I9fd0a98db92c8c0a6c2c7091fc9da22d0325b16a --- src/manager/common/data-type.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/manager/common/data-type.h b/src/manager/common/data-type.h index 58dde1b..33884b7 100644 --- a/src/manager/common/data-type.h +++ b/src/manager/common/data-type.h @@ -79,6 +79,12 @@ public: operator int() const; bool isKey() const; + + /* + * Number of times someone mistook it for isKey() (or the opposite): 3 + * Increase the counter if it happened to you. + * I will rename this function if the counter reaches 4. + */ bool isSKey() const; bool isChainCert() const; bool isKeyPrivate() const; -- 2.7.4