diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-21 13:11:47 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-21 13:30:16 +0000 |
| commit | 89594d455718432a24930a7cf97c26daaaf49472 (patch) | |
| tree | 9471702d551a26cdbc5b26203496fb39d7a6f22c /include | |
| parent | b478a1cb5351180cd39b5a01e1891bfd30af1659 (diff) | |
Add a method to the ns_cert API for replacing a certificate.
This will be used for upgrading certificate fingerprints when the
InspIRCd 1206 protocol support is added.
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/ns_cert.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modules/ns_cert.h b/include/modules/ns_cert.h index 2d24cfeae..804643e77 100644 --- a/include/modules/ns_cert.h +++ b/include/modules/ns_cert.h @@ -54,6 +54,15 @@ public: */ virtual void EraseCert(const Anope::string &entry) = 0; + /** Replaces a fingerprint in the nick's certificate list + * + * @param oldentry The old fingerprint to remove + * @param newentry The new fingerprint to add + * + * Replaces the specified fingerprint in the cert list. + */ + virtual void ReplaceCert(const Anope::string &oldentry, const Anope::string &newentry) = 0; + /** Clears the entire nick's cert list * * Deletes all the memory allocated in the certificate list vector and then clears the vector. |
