Lines Matching defs:ciphers
183 free((char *)config->ciphers);
483 tls_config_set_ciphers(struct tls_config *config, const char *ciphers)
487 if (ciphers == NULL ||
488 strcasecmp(ciphers, "default") == 0 ||
489 strcasecmp(ciphers, "secure") == 0)
490 ciphers = TLS_CIPHERS_DEFAULT;
491 else if (strcasecmp(ciphers, "compat") == 0)
492 ciphers = TLS_CIPHERS_COMPAT;
493 else if (strcasecmp(ciphers, "legacy") == 0)
494 ciphers = TLS_CIPHERS_LEGACY;
495 else if (strcasecmp(ciphers, "all") == 0 ||
496 strcasecmp(ciphers, "insecure") == 0)
497 ciphers = TLS_CIPHERS_ALL;
504 if (SSL_CTX_set_cipher_list(ssl_ctx, ciphers) != 1) {
506 "no ciphers for '%s'", ciphers);
511 return tls_set_string(&config->ciphers, ciphers);