Skip to content

Commit

Permalink
Set MBEDTLS_SSL_CERT_REQ_CA_LIST_DISABLED
Browse files Browse the repository at this point in the history
We are using self-signed certificates. If the remote doesn't generate
with "dtls_srtp" as the CA negotation will fail with this set.
  • Loading branch information
Sean-Der committed Sep 19, 2024
1 parent f59edd9 commit c7a4d66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dtls_srtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ int dtls_srtp_init(DtlsSrtp* dtls_srtp, DtlsSrtpRole role, void* user_data) {

mbedtls_ssl_conf_srtp_mki_value_supported(&dtls_srtp->conf, MBEDTLS_SSL_DTLS_SRTP_MKI_UNSUPPORTED);

mbedtls_ssl_conf_cert_req_ca_list(&dtls_srtp->conf, MBEDTLS_SSL_CERT_REQ_CA_LIST_DISABLED);

mbedtls_ssl_setup(&dtls_srtp->ssl, &dtls_srtp->conf);

return 0;
Expand Down

0 comments on commit c7a4d66

Please sign in to comment.