cisco / libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
Other
1.22k stars 474 forks source link

unresolved external symbol srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 when linking lib on windows #615

Closed navadev closed 1 year ago

navadev commented 1 year ago

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_cm192*) left out on purpose?

pabuhler commented 1 year ago

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.

pabuhler commented 1 year ago

@navadev should be there now, hope it helps.