If using a legitimate certificate from a trusted certificate authority,
you don't need to provide CA file.
Change-Id: I8623973b4209b44889243716d7880274caed8a6d
endpoint->media.rtp.dtls_cfg.default_setup = AST_RTP_DTLS_SETUP_ACTPASS;
endpoint->media.rtp.dtls_cfg.verify = AST_RTP_DTLS_VERIFY_FINGERPRINT;
- if (ast_strlen_zero(endpoint->media.rtp.dtls_cfg.certfile) ||
- (ast_strlen_zero(endpoint->media.rtp.dtls_cfg.cafile))) {
+ if (ast_strlen_zero(endpoint->media.rtp.dtls_cfg.certfile)) {
ast_log(LOG_ERROR, "WebRTC can't be enabled on endpoint '%s' - a DTLS cert "
- "or ca file has not been specified", ast_sorcery_object_get_id(endpoint));
+ "has not been specified", ast_sorcery_object_get_id(endpoint));
return -1;
}
}