fix compiler warning vs2010

This commit is contained in:
Seven Du 2014-02-25 14:17:28 +08:00
parent 463f32c4e3
commit fa9217117a
2 changed files with 2 additions and 2 deletions

View File

@ -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 != aad_len) { if (rv != (int)aad_len) {
return (err_status_algo_fail); return (err_status_algo_fail);
} else { } else {
return (err_status_ok); return (err_status_ok);

View File

@ -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 < (octets_in_rtcp_header + tag_len + if (*pkt_octet_len < (int)(octets_in_rtcp_header + tag_len +
sizeof(srtcp_trailer_t))) { sizeof(srtcp_trailer_t))) {
return err_status_bad_param; return err_status_bad_param;
} }