Module: kamailio
Branch: master
Commit: b886ba5ce8bc6788832c79be508e5507a2a7ef08
URL:
https://github.com/kamailio/kamailio/commit/b886ba5ce8bc6788832c79be508e550…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/b886ba5ce8bc6788832c79be508e550…
Patch:
https://github.com/kamailio/kamailio/commit/b886ba5ce8bc6788832c79be508e550…
---
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 } }
};