Module: kamailio
Branch: master
Commit: d2c7dd4dd93326506d8c8dbd4cfebbe2227101a9
URL: 
https://github.com/kamailio/kamailio/commit/d2c7dd4dd93326506d8c8dbd4cfebbe2227101a9

Author: Xenofon Karamanos <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2026-01-07T14:44:55+01:00

auth_web3: Use new sha3utils interface

---

Modified: src/modules/auth_web3/web3_imple.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/d2c7dd4dd93326506d8c8dbd4cfebbe2227101a9.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d2c7dd4dd93326506d8c8dbd4cfebbe2227101a9.patch

---

diff --git a/src/modules/auth_web3/web3_imple.c 
b/src/modules/auth_web3/web3_imple.c
index d0e45e1a3cd..5e843905b1b 100644
--- a/src/modules/auth_web3/web3_imple.c
+++ b/src/modules/auth_web3/web3_imple.c
@@ -180,7 +180,7 @@ static void ens_namehash(const char *name, char *hash_hex)
 
        /* Handle empty string (root domain) */
        if(strlen(name) == 0) {
-               bytes_to_hex(hash, 32, hash_hex);
+               bytes_to_hex(hash, 32, hash_hex, 65);
                return;
        }
 
@@ -246,7 +246,7 @@ static void ens_namehash(const char *name, char *hash_hex)
        }
 
        /* Convert final hash to hex string */
-       bytes_to_hex(hash, 32, hash_hex);
+       bytes_to_hex(hash, 32, hash_hex, 65);
 
        if(web3_contract_debug_mode) {
                LM_DBG("Namehash computed for '%s'", name);

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to