Make sure that AES ciphersuites get priority over Camellia ciphersuites
authorBodo Möller <bodo@openssl.org>
Wed, 14 Jun 2006 13:52:49 +0000 (13:52 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 14 Jun 2006 13:52:49 +0000 (13:52 +0000)
in the default cipher string.

ssl/ssl.h

index 66e9a4d6c4074fa516d39d46fc8d1e9371962771..83f1fee80461777189c150b764e0488e000df61d 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
  *
  */
 /* ====================================================================
- * Copyright (c) 1998-2002 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1998-2006 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -316,7 +316,11 @@ extern "C" {
 /* The following cipher list is used by default.
  * It also is substituted when an application-defined cipher list string
  * starts with 'DEFAULT'. */
-#define SSL_DEFAULT_CIPHER_LIST        "ALL:!ADH:+RC4:@STRENGTH" /* low priority for RC4 */
+#ifdef OPENSSL_NO_CAMELLIA
+# define SSL_DEFAULT_CIPHER_LIST       "ALL:!ADH:+RC4:@STRENGTH" /* low priority for RC4 */
+#else
+# define SSL_DEFAULT_CIPHER_LIST       "AES:CAMELLIA:-ECCdraft:ALL:!ADH:+RC4:@STRENGTH" /* low priority for RC4 */
+#endif
 
 /* Used in SSL_set_shutdown()/SSL_get_shutdown(); */
 #define SSL_SENT_SHUTDOWN      1