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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2021-02-02T21:43:21+01:00

crypto: exported hmac_sha256() to KEMI

---

Modified: src/modules/crypto/crypto_mod.c

---

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

---

diff --git a/src/modules/crypto/crypto_mod.c b/src/modules/crypto/crypto_mod.c
index b0904d820e..c57c69f783 100644
--- a/src/modules/crypto/crypto_mod.c
+++ b/src/modules/crypto/crypto_mod.c
@@ -638,6 +638,11 @@ static sr_kemi_t sr_kemi_crypto_exports[] = {
                { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_STR,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
        },
+       { str_init("crypto"), str_init("hmac_sha256"),
+               SR_KEMIP_INT, ki_crypto_hmac_sha256,
+               { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_STR,
+                       SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+       },
 
        { {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
 };


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to