提交 4fd93b0e authored 作者: Seven Du's avatar Seven Du

Revert "fix compiler warning vs2010" - Jeff is faster than I

This reverts commit fa921711.
上级 fa921711
...@@ -261,7 +261,7 @@ err_status_t aes_gcm_openssl_set_aad (aes_gcm_ctx_t *c, unsigned char *aad, ...@@ -261,7 +261,7 @@ err_status_t aes_gcm_openssl_set_aad (aes_gcm_ctx_t *c, unsigned char *aad,
EVP_CIPHER_CTX_ctrl(&c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, aad); EVP_CIPHER_CTX_ctrl(&c->ctx, EVP_CTRL_GCM_SET_TAG, c->tag_len, aad);
rv = EVP_Cipher(&c->ctx, NULL, aad, aad_len); rv = EVP_Cipher(&c->ctx, NULL, aad, aad_len);
if (rv != (int)aad_len) { if (rv != aad_len) {
return (err_status_algo_fail); return (err_status_algo_fail);
} else { } else {
return (err_status_ok); return (err_status_ok);
......
...@@ -2330,7 +2330,7 @@ srtp_unprotect_rtcp_aead (srtp_t ctx, srtp_stream_ctx_t *stream, ...@@ -2330,7 +2330,7 @@ srtp_unprotect_rtcp_aead (srtp_t ctx, srtp_stream_ctx_t *stream,
tag_len = auth_get_tag_length(stream->rtcp_auth); tag_len = auth_get_tag_length(stream->rtcp_auth);
/* Validate packet length */ /* Validate packet length */
if (*pkt_octet_len < (int)(octets_in_rtcp_header + tag_len + if (*pkt_octet_len < (octets_in_rtcp_header + tag_len +
sizeof(srtcp_trailer_t))) { sizeof(srtcp_trailer_t))) {
return err_status_bad_param; return err_status_bad_param;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论