Rename the hmac-sha256-ip cloak engine to hmac-sha256-addr.

This engine cloaks the socket address which may not necessarily be
an IP address.
This commit is contained in:
Sadie Powell 2024-02-12 13:53:23 +00:00
parent 72b39087b1
commit b2807d5bb2
2 changed files with 4 additions and 4 deletions

View File

@ -564,7 +564,7 @@
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# HMAC-SHA256 cloak module: Adds the "hmac-sha256" (hostname or IP) and
# "hmac-sha256-ip" (IP only) cloak methods. This is the recommended
# "hmac-sha256-addr" (IP only) cloak methods. This is the recommended
# cloak module for new networks.
#
# IMPORTANT: If you are using this module you should also load the sha2
@ -619,7 +619,7 @@
# pathparts="1"
# psl="system">
#
#<cloak method="hmac-sha256-ip"
#<cloak method="hmac-sha256-addr"
# key="changeme"
# class=""
# prefix="MyNet"

View File

@ -337,14 +337,14 @@ class ModuleCloakSHA256 final
: public Module
{
private:
SHA256Engine addrcloak;
SHA256Engine hostcloak;
SHA256Engine ipcloak;
public:
ModuleCloakSHA256()
: Module(VF_VENDOR, "Adds the hmac-sha256 and hmac-sha256-ip cloaking methods for use with the cloak module.")
, addrcloak(this, "hmac-sha256-addr", false)
, hostcloak(this, "hmac-sha256", true)
, ipcloak(this, "hmac-sha256-ip", false)
{
}