|
|
@@ -177,9 +177,7 @@ int dtls_srtp_init(DtlsSrtp* dtls_srtp, DtlsSrtpRole role, void* user_data) {
|
|
|
|
|
|
mbedtls_ssl_conf_verify(&dtls_srtp->conf, dtls_srtp_cert_verify, NULL);
|
|
|
|
|
|
-// mbedtls_ssl_conf_authmode(&dtls_srtp->conf, MBEDTLS_SSL_VERIFY_REQUIRED);
|
|
|
- // 忽略证书验证部分工作
|
|
|
- mbedtls_ssl_conf_authmode(&dtls_srtp->conf, VERIFY_OPTIONAL);
|
|
|
+ mbedtls_ssl_conf_authmode(&dtls_srtp->conf, MBEDTLS_SSL_VERIFY_REQUIRED);
|
|
|
LOGI("mbedtls_ssl_conf_authmode MBEDTLS_SSL_VERIFY_REQUIRED");
|
|
|
mbedtls_ssl_conf_ca_chain(&dtls_srtp->conf, &dtls_srtp->cert, NULL);
|
|
|
|