Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRTP profile is not supported #1191

Closed
jiajialaixi opened this issue May 24, 2024 · 4 comments
Closed

SRTP profile is not supported #1191

jiajialaixi opened this issue May 24, 2024 · 4 comments

Comments

@jiajialaixi
Copy link

image

openssl version:3.3.0

cmake -B build-$1 \ -Dhave_sa_len=0 \ -DHAVE_MACHINE_TYPES_H=0 \ -DANDROID=1 \ -DCMAKE_SYSTEM_NAME=Android \ -DCMAKE_SYSTEM_VERSION=$API \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_ANDROID_ARCH_ABI=ABI \ -DCMAKE_TOOLCHAIN_FILE="${NDK_ROOT}/build/cmake/android.toolchain.cmake" \ -DANDROID_NDK="${NDK_ROOT}" \ -DANDROID_NATIVE_API_LEVEL=${API_LEVEL} \ -DANDROID_ABI="$ABI" \ -DBUILD_TESTING=OFF \ -DENABLE_OPENSSL=NO \ -DOPENSSL=NO \ -DOPENSSL_USE_STATIC_LIBS="1" \ -DOPENSSL_INCLUDE_DIR="${OPENSSL_SO_DIR}/include" \ -DOPENSSL_SSL_LIBRARY="${OPENSSL_SO_DIR}/lib/libssl.a" \ -DOPENSSL_CRYPTO_LIBRARY="${OPENSSL_SO_DIR}/lib/libcrypto.a" \ -DUSE_GNUTLS=0 \ -DUSE_NICE=0

May I ask what is the reason for this issue and what modifications do I need to make?

@paullouisageneau
Copy link
Owner

It looks like you build the libsrtp submodule. You must remove the options -DENABLE_OPENSSL=NO -DOPENSSL=NO otherwise they interfere with the build and prevent libsrtp from using OpenSSL. Without OpenSSL, libsrtp does not support GCM encryption.

@jiajialaixi
Copy link
Author

If I want to disable GCM
1、add -DENABLE_OPENSSL=OFF -DGCM=OFF Setting these two APIs is invalid
2、remove -DOPENSSL_INCLUDE_DIR -DOPENSSL_SSL_LIBRARY -DOPENSSL_CRYPTO_LIBRARY The following error occurred
image

@paullouisageneau
Copy link
Owner

libdatachannel requires a crypto library for DTLS, you can't build it without OpenSSL. There is no option to disable GCM.

@jiajialaixi
Copy link
Author

At present, please close it first. We will reopen it once there are detailed logs. We are currently working on other tasks, thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants