cisco/libsrtp

unresolved external symbol srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 when linking lib on windows

navadev opened this issue · 2 comments

I am getting this linker error when using the srtp2.lib on Windows. I am building using Visual Studio 2022.

I notice this API is available on include/srtp.h header:

https://github.com/cisco/libsrtp/blob/main/include/srtp.h#L920

However, it is not listed in srtp.def. When adding this to srtp.def it resolved the link-time issues in my application.

Is this API (as well as variants of srtp_crypto_policy_set_aes_cm_192_*) left out on purpose?

Hi @navadev I don't think this was left out on purpose, if you create a PR then that would be good otherwise I will add it when I get around to it.

@navadev should be there now, hope it helps.