Skip to content

Commit

Permalink
Workaround for #12
Browse files Browse the repository at this point in the history
Disable ChaCha20/Poly1305 when using DTLS
PeterMosmans committed Apr 7, 2015
1 parent 728c334 commit 7f8ec0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ssl/d1_lib.c
Original file line number Diff line number Diff line change
@@ -354,6 +354,10 @@ const SSL_CIPHER *dtls1_get_cipher(unsigned int u)
return NULL;
}

/* CHACHA20_POLY1305 does not work with DTLS */
if (ciph->algorithm_enc == SSL_CHACHA20POLY1305)
return NULL;

return ciph;
}

0 comments on commit 7f8ec0f

Please sign in to comment.