@riccardv commented on this pull request.
In src/modules/ims_ipsec_pcscf/ipsec.c:
> + // cipher_null, des, des3_ede, aes strcpy(l_enc_algo->alg_name,"cipher_null"); + if (strncasecmp(r_ealg.s,"aes-cbc",r_ealg.len) == 0) { + LM_DBG("Creating security associations: AES\n"); + strcpy(l_enc_algo->alg_name,"aes"); + l_enc_algo->alg_key_len = ck.len * 4; + string_to_key(l_enc_algo->alg_key, ck); + } + else if (strncasecmp(r_ealg.s,"des-ede3-cbc",r_ealg.len) == 0) { + LM_DBG("Creating security associations: DES, ck.len=%d\n",ck.len); + strcpy(l_enc_algo->alg_name,"des3_ede"); + str ck1; + ck1.s = pkg_malloc (128); + strncpy(ck1.s,ck.s,32); + strncat(ck1.s,ck.s,16); + ck1.len=32+16; + + l_enc_algo->alg_key_len = ck1.len * 4; + string_to_key(l_enc_algo->alg_key, ck1); + + pkg_free(ck1.s); + }
I simply add the algorithm in the original code, nothing more
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.