summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-12-07 07:59:30 +0100
committerAdam <Adam@anope.org>2010-12-12 19:37:03 -0500
commit099ead02a57e6081706e628b1e3d5ebf97ab7d94 (patch)
treecbd2018711ac937b4110e0ffb2fc01308a864450 /include
parentf1d04a2f8e4e9077d07a94b64478bb331b49bbc0 (diff)
store the ssl fingerprint in the userstruct
Diffstat (limited to 'include')
-rw-r--r--include/modules.h8
-rw-r--r--include/users.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 55697dbb9..0afd033a3 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -907,6 +907,12 @@ class CoreExport Module : public Extensible
*/
virtual void OnNickInfo(User *u, NickAlias *na, bool ShowHidden) { }
+ /** Called when we get informed about a users SSL fingerprint
+ * when we call this, the fingerprint should already be stored in the user struct
+ * @param u pointer to the user
+ */
+ virtual void OnFingerprint(User *u) { }
+
/** Called when a vhost is deleted
* @param na The nickalias of the vhost
*/
@@ -1032,7 +1038,7 @@ enum Implementation
I_OnNickRegister, I_OnNickSuspended, I_OnNickUnsuspended,
I_OnDelNick, I_OnDelCore, I_OnChangeCoreDisplay,
I_OnDelNickRequest, I_OnMakeNickRequest, I_OnNickClearAccess, I_OnNickAddAccess, I_OnNickEraseAccess,
- I_OnNickInfo,
+ I_OnNickInfo, I_OnFingerprint,
/* ChanServ */
I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnPreChanExpire, I_OnChanExpire, I_OnAccessAdd, I_OnAccessChange,
diff --git a/include/users.h b/include/users.h
index e06c5c5a5..6d4679392 100644
--- a/include/users.h
+++ b/include/users.h
@@ -48,6 +48,7 @@ class CoreExport User : public Extensible
Anope::string vhost; /* User's virtual hostname */
Anope::string chost; /* User's cloaked hostname */
Anope::string realname; /* Realname */
+ Anope::string fingerprint; /* SSL Fingerprint */
sockaddrs ip; /* User's IP */
Server *server; /* Server user is connected to */
time_t timestamp; /* Timestamp of the nick */