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

meson: add ability to configure libsrtp2 crypto library (defaulting to mbedtls) #6

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

iameli
Copy link

@iameli iameli commented Dec 7, 2023

This was upstreamed to cisco/libsrtp2 so now it's very easy. cisco/libsrtp#660

Preliminary testing showed similar performance for OpenSSL and mbedtls, and mbedtls is already a Meson subproject, so we may as well just use this. Both OpenSSL and mbedtls were around twice as performant as the built-in libsrtp2 crypto functions.

@@ -24,4 +24,4 @@ option('WITH_JPG', description: 'Build JPG thumbnailer output support (WIP)', ty
option('WITH_SANITY', description: 'Enable MistOutSanityCheck output for testing purposes', type: 'boolean', value: false)
option('LSP_MINIFY', description: 'Try to minify LSP JS via java closure-compiler, generally not needed unless changing JS code as a minified version is part of the repository already', type: 'boolean', value: false)
option('LOCAL_GENERATORS', description: 'Attempts to find a locally-installed version of sourcery and make_html, instead of compiling it', type: 'boolean', value: false)

option('SRTP_CRYPTO_LIBRARY', type: 'combo', choices : ['none', 'openssl', 'nss', 'mbedtls'], value : 'mbedtls', description : 'What external crypto library to leverage for libsrtp2, if any (OpenSSL, NSS, or mbedtls)')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this configured somewhere? or is mbedtls the default?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Yeah this part makes it the default

@iameli iameli merged commit 1ef1daa into catalyst Dec 7, 2023
1 check passed
@iameli iameli deleted the eli/srtp-mbedtls branch December 7, 2023 15:47
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

Successfully merging this pull request may close these issues.

2 participants