Skip to content

Support OpenSSL3#3168

Merged
trengginas merged 2 commits intomasterfrom
openssl_3
Jul 8, 2022
Merged

Support OpenSSL3#3168
trengginas merged 2 commits intomasterfrom
openssl_3

Conversation

@trengginas
Copy link
Copy Markdown
Member

This PR will add support to using OpenSSL 3 (ref).
Tested using OpenSSL 3.0.4 on Windows, MacOS, iOS, Android.

Modification:

  • Update low level function which is deprecated. The changes will also remove deprecated warning on build.
    • ERR_func_error_string()
    • PEM_read_bio_DHparams()
    • SSL_CTX_set_tmp_dh()
    • SHA256_Init()
    • SHA256_Update(()
    • SHA256_Final()
  • When using TLS1 and TLS1.1, security level needs to change to work.

This PR doesn't remove the build warning from librtp.
There's currently purpose fix for this.

{ \
char err_str[PJ_ERR_MSG_SIZE]; \
ERR_error_string_n(err, err_str, sizeof(err_str)); \
char buf[PJ_INET6_ADDRSTRLEN+10]; \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

move the variable declaration above? (i.e. swap L267 and L266)

@sauwming
Copy link
Copy Markdown
Member

sauwming commented Jul 5, 2022

Make sure to test build and run with DTLS as well since it directly includes OpenSSL headers.

@trengginas
Copy link
Copy Markdown
Member Author

Tested with enabling DTLS.

@trengginas trengginas merged commit 0d7157c into master Jul 8, 2022
@sauwming sauwming deleted the openssl_3 branch November 1, 2022 06:37
wosrediinanatour pushed a commit to wosrediinanatour/pjproject that referenced this pull request Jan 16, 2023
* Support OpenSSL3

* Modify code order
BarryYin pushed a commit to BarryYin/pjproject that referenced this pull request Feb 3, 2026
* Support OpenSSL3

* Modify code order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants