Skip to content

Commit

Permalink
Fix bug caused by libusual#40 (libusual#46)
Browse files Browse the repository at this point in the history
The change to use default ciphers accidentally broke usage of the
the string "default" as the cipherlist. This fixes that.
  • Loading branch information
JelteF authored Sep 22, 2023
1 parent 707a0b2 commit ac3bd5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usual/tls/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ tls_configure_ssl(struct tls *ctx)
* https://docs.fedoraproject.org/en-US/packaging-guidelines/CryptoPolicies/
*/
if (ctx->config->ciphers != NULL) {
if (strcasecmp(ctx->config->ciphers, "secure") != 0 &&
if (strcasecmp(ctx->config->ciphers, "default") != 0 &&
strcasecmp(ctx->config->ciphers, "secure") != 0 &&
strcasecmp(ctx->config->ciphers, "normal") != 0 &&
strcasecmp(ctx->config->ciphers, "fast") != 0) {

Expand Down

0 comments on commit ac3bd5d

Please sign in to comment.