From 416661d17d6797c439d80afb0681e75a3573ff80 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 11 Feb 2023 09:27:46 +0000 Subject: Add an option so local non-SSL users can be seen as securely connected. --- include/modules/ssl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/modules') diff --git a/include/modules/ssl.h b/include/modules/ssl.h index 0da373540..747c468e5 100644 --- a/include/modules/ssl.h +++ b/include/modules/ssl.h @@ -303,6 +303,11 @@ public: */ virtual ssl_cert* GetCertificate(User* user) = 0; + /** Determines whether the specified user is connected securely. + * @return True if the user is connected securely; otherwise, false. + */ + virtual bool IsSecure(User* user) = 0; + /** Set the TLS certificate of a user. * @param user The user whose certificate to set. * @param cert The TLS certificate to set for the user. -- cgit v1.3.1-10-gc9f91