[sr-dev] git:master:b886ba5c: crypto: exported hmac_sha256() to KEMI

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 2 21:49:18 CET 2021


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
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 } }
 };




More information about the sr-dev mailing list