Skip to content

Commit

Permalink
Actually try all ciphersuites until one works
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Nov 15, 2023
1 parent b6129dd commit 59b87c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
22 changes: 11 additions & 11 deletions simple_https_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,17 @@ const SHA384_Aes256Gcm_EcdsaSecp256r1Sha256_P256: Algorithms = Algorithms(
pub fn ciphersuites() -> Vec<Algorithms> {
vec![
SHA256_Chacha20Poly1305_RsaPssRsaSha256_X25519,
//SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_X25519,
//SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_P256,
//SHA256_Chacha20Poly1305_RsaPssRsaSha256_P256,
// SHA256_Aes128Gcm_EcdsaSecp256r1Sha256_P256,
// SHA256_Aes128Gcm_EcdsaSecp256r1Sha256_X25519,
// SHA256_Aes128Gcm_RsaPssRsaSha256_P256,
// SHA256_Aes128Gcm_RsaPssRsaSha256_X25519,
// SHA384_Aes256Gcm_EcdsaSecp256r1Sha256_P256,
// SHA384_Aes256Gcm_EcdsaSecp256r1Sha256_X25519,
// SHA384_Aes256Gcm_RsaPssRsaSha256_P256,
// SHA384_Aes256Gcm_RsaPssRsaSha256_X25519,
SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_X25519,
SHA256_Chacha20Poly1305_EcdsaSecp256r1Sha256_P256,
SHA256_Chacha20Poly1305_RsaPssRsaSha256_P256,
SHA256_Aes128Gcm_EcdsaSecp256r1Sha256_P256,
SHA256_Aes128Gcm_EcdsaSecp256r1Sha256_X25519,
SHA256_Aes128Gcm_RsaPssRsaSha256_P256,
SHA256_Aes128Gcm_RsaPssRsaSha256_X25519,
SHA384_Aes256Gcm_EcdsaSecp256r1Sha256_P256,
SHA384_Aes256Gcm_EcdsaSecp256r1Sha256_X25519,
SHA384_Aes256Gcm_RsaPssRsaSha256_P256,
SHA384_Aes256Gcm_RsaPssRsaSha256_X25519,
]
}

Expand Down
5 changes: 2 additions & 3 deletions simple_https_client/src/tls13client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ fn main() -> anyhow::Result<()> {
Ok((_, _, response_prefix)) => response_prefix,
Err(e) => {
// We ignore all errors here for now and keep trying.
eprintln!("tls13connet failed with {}", e);
break; // TODO FIX
//continue;
eprintln!("tls13connect failed with {}", e);
continue;
}
};
break;
Expand Down

0 comments on commit 59b87c8

Please sign in to comment.