diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2011-03-12 09:27:16 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2011-03-12 09:27:16 +0100 |
commit | fbae3344ff70f9e035292fdc9a6e09efc2702aed (patch) | |
tree | 440df041a811317db159365a6322bae9cd596643 /include/account.h | |
parent | 95469fde3055e1a257fd4e1027617892b912d07c (diff) |
added ns_cert
Diffstat (limited to 'include/account.h')
-rw-r--r-- | include/account.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/account.h b/include/account.h index 8615083b9..635606f62 100644 --- a/include/account.h +++ b/include/account.h @@ -152,6 +152,7 @@ class CoreExport NickCore : public Extensible, public Flags<NickCoreFlag, NI_END Anope::string greet; /* Greet associated to the nick */ Anope::string language; /* Language name */ std::vector<Anope::string> access; /* Access list, vector of strings */ + std::vector<Anope::string> cert; /* ssl certificate list, vector of strings */ MemoInfo memos; uint16 channelcount; /* Number of channels currently registered */ @@ -217,6 +218,47 @@ class CoreExport NickCore : public Extensible, public Flags<NickCoreFlag, NI_END * Deletes all the memory allocated in the access list vector and then clears the vector. */ void ClearAccess(); + + /** Add an entry to the nick's certificate list + * + * @param entry The fingerprint to add to the cert list + * + * Adds a new entry into the cert list. + */ + void AddCert(const Anope::string &entry); + + /** Get an entry from the nick's cert list by index + * + * @param entry Index in the certificaate list vector to retrieve + * @return The fingerprint entry of the given index if within bounds, an empty string if the vector is empty or the index is out of bounds + * + * Retrieves an entry from the certificate list corresponding to the given index. + */ + Anope::string GetCert(unsigned entry) const; + + /** Find an entry in the nick's cert list + * + * @param entry The fingerprint to search for + * @return True if the fingerprint is found in the cert list, false otherwise + * + * Search for an fingerprint within the cert list. + */ + bool FindCert(const Anope::string &entry); + + /** Erase a fingerprint from the nick's certificate list + * + * @param entry The fingerprint to remove + * + * Removes the specified fingerprint from the cert list. + */ + void EraseCert(const Anope::string &entry); + + /** Clears the entire nick's cert list + * + * Deletes all the memory allocated in the certificate list vector and then clears the vector. + */ + void ClearCert(); + }; /** Timer for colliding nicks to force people off of nicknames |