Skip to content

Commit

Permalink
Only enable DTLS if SSL backend is OpenSSL (#4239)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Jan 3, 2025
1 parent 653ff57 commit 536df27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pjmedia/src/pjmedia/transport_srtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@

#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0)

/* Currently SRTP-DTLS requires OpenSSL */
#if PJMEDIA_SRTP_HAS_DTLS
# if PJ_SSL_SOCK_IMP != PJ_SSL_SOCK_IMP_OPENSSL
# pragma message("DTLS requires OpenSSL, disabling it...")
# undef PJMEDIA_SRTP_HAS_DTLS
# define PJMEDIA_SRTP_HAS_DTLS 0
# endif
#endif

/* Enable this to test ROC initialization setting. For offerer,
* it will send packets with ROC 1 and expect to receive ROC 2.
* For answerer it will be the other way around.
Expand Down

0 comments on commit 536df27

Please sign in to comment.