Skip to content
Snippets Groups Projects
Commit 5f01f73f authored by George Joseph's avatar George Joseph Committed by Gerrit Code Review
Browse files

Merge "SRTP: Lower SDES key lifetime minimum to 2^20"

parents d9596b50 993ba84c
No related branches found
No related tags found
No related merge requests found
......@@ -980,8 +980,8 @@ static int res_sdp_crypto_parse_offer(struct ast_rtp_instance *rtp, struct ast_s
sdes_lifetime = n_lifetime;
}
/* Accept anything above 10 hours. Less than 10; reject. */
if (sdes_lifetime < 1800000) {
/* Accept anything above ~5.8 hours. Less than ~5.8; reject. */
if (sdes_lifetime < 1048576) {
ast_log(LOG_NOTICE, "Rejecting crypto attribute '%s': lifetime '%f' too short\n", attr, sdes_lifetime);
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment