diff --git a/crates/typos-cli/tests/cmd/ssl-cipher-suite.in/file.txt b/crates/typos-cli/tests/cmd/ssl-cipher-suite.in/file.txt new file mode 100644 index 0000000..ebc7b97 --- /dev/null +++ b/crates/typos-cli/tests/cmd/ssl-cipher-suite.in/file.txt @@ -0,0 +1,352 @@ +TLS_NULL_WITH_NULL_NULL +TLS_RSA_WITH_NULL_MD5 +TLS_RSA_WITH_NULL_SHA +TLS_RSA_EXPORT_WITH_RC4_40_MD5 +TLS_RSA_WITH_RC4_128_MD5 +TLS_RSA_WITH_RC4_128_SHA +TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 +TLS_RSA_WITH_IDEA_CBC_SHA +TLS_RSA_EXPORT_WITH_DES40_CBC_SHA +TLS_RSA_WITH_DES_CBC_SHA +TLS_RSA_WITH_3DES_EDE_CBC_SHA +TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA +TLS_DH_DSS_WITH_DES_CBC_SHA +TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA +TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA +TLS_DH_RSA_WITH_DES_CBC_SHA +TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA +TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA +TLS_DHE_DSS_WITH_DES_CBC_SHA +TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA +TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA +TLS_DHE_RSA_WITH_DES_CBC_SHA +TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA +TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 +TLS_DH_anon_WITH_RC4_128_MD5 +TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA +TLS_DH_anon_WITH_DES_CBC_SHA +TLS_DH_anon_WITH_3DES_EDE_CBC_SHA +TLS_KRB5_WITH_DES_CBC_SHA +TLS_KRB5_WITH_3DES_EDE_CBC_SHA +TLS_KRB5_WITH_RC4_128_SHA +TLS_KRB5_WITH_IDEA_CBC_SHA +TLS_KRB5_WITH_DES_CBC_MD5 +TLS_KRB5_WITH_3DES_EDE_CBC_MD5 +TLS_KRB5_WITH_RC4_128_MD5 +TLS_KRB5_WITH_IDEA_CBC_MD5 +TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA +TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA +TLS_KRB5_EXPORT_WITH_RC4_40_SHA +TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 +TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5 +TLS_KRB5_EXPORT_WITH_RC4_40_MD5 +TLS_PSK_WITH_NULL_SHA +TLS_DHE_PSK_WITH_NULL_SHA +TLS_RSA_PSK_WITH_NULL_SHA +TLS_RSA_WITH_AES_128_CBC_SHA +TLS_DH_DSS_WITH_AES_128_CBC_SHA +TLS_DH_RSA_WITH_AES_128_CBC_SHA +TLS_DHE_DSS_WITH_AES_128_CBC_SHA +TLS_DHE_RSA_WITH_AES_128_CBC_SHA +TLS_DH_anon_WITH_AES_128_CBC_SHA +TLS_RSA_WITH_AES_256_CBC_SHA +TLS_DH_DSS_WITH_AES_256_CBC_SHA +TLS_DH_RSA_WITH_AES_256_CBC_SHA +TLS_DHE_DSS_WITH_AES_256_CBC_SHA +TLS_DHE_RSA_WITH_AES_256_CBC_SHA +TLS_DH_anon_WITH_AES_256_CBC_SHA +TLS_RSA_WITH_NULL_SHA256 +TLS_RSA_WITH_AES_128_CBC_SHA256 +TLS_RSA_WITH_AES_256_CBC_SHA256 +TLS_DH_DSS_WITH_AES_128_CBC_SHA256 +TLS_DH_RSA_WITH_AES_128_CBC_SHA256 +TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 +TLS_RSA_WITH_CAMELLIA_128_CBC_SHA +TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA +TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA +TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA +TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA +TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA +TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 +TLS_DH_DSS_WITH_AES_256_CBC_SHA256 +TLS_DH_RSA_WITH_AES_256_CBC_SHA256 +TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 +TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 +TLS_DH_anon_WITH_AES_128_CBC_SHA256 +TLS_DH_anon_WITH_AES_256_CBC_SHA256 +TLS_RSA_WITH_CAMELLIA_256_CBC_SHA +TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA +TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA +TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA +TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA +TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA +TLS_PSK_WITH_RC4_128_SHA +TLS_PSK_WITH_3DES_EDE_CBC_SHA +TLS_PSK_WITH_AES_128_CBC_SHA +TLS_PSK_WITH_AES_256_CBC_SHA +TLS_DHE_PSK_WITH_RC4_128_SHA +TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA +TLS_DHE_PSK_WITH_AES_128_CBC_SHA +TLS_DHE_PSK_WITH_AES_256_CBC_SHA +TLS_RSA_PSK_WITH_RC4_128_SHA +TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA +TLS_RSA_PSK_WITH_AES_128_CBC_SHA +TLS_RSA_PSK_WITH_AES_256_CBC_SHA +TLS_RSA_WITH_SEED_CBC_SHA +TLS_DH_DSS_WITH_SEED_CBC_SHA +TLS_DH_RSA_WITH_SEED_CBC_SHA +TLS_DHE_DSS_WITH_SEED_CBC_SHA +TLS_DHE_RSA_WITH_SEED_CBC_SHA +TLS_DH_anon_WITH_SEED_CBC_SHA +TLS_RSA_WITH_AES_128_GCM_SHA256 +TLS_RSA_WITH_AES_256_GCM_SHA384 +TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 +TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 +TLS_DH_RSA_WITH_AES_128_GCM_SHA256 +TLS_DH_RSA_WITH_AES_256_GCM_SHA384 +TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 +TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 +TLS_DH_DSS_WITH_AES_128_GCM_SHA256 +TLS_DH_DSS_WITH_AES_256_GCM_SHA384 +TLS_DH_anon_WITH_AES_128_GCM_SHA256 +TLS_DH_anon_WITH_AES_256_GCM_SHA384 +TLS_PSK_WITH_AES_128_GCM_SHA256 +TLS_PSK_WITH_AES_256_GCM_SHA384 +TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 +TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 +TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 +TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 +TLS_PSK_WITH_AES_128_CBC_SHA256 +TLS_PSK_WITH_AES_256_CBC_SHA384 +TLS_PSK_WITH_NULL_SHA256 +TLS_PSK_WITH_NULL_SHA384 +TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 +TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 +TLS_DHE_PSK_WITH_NULL_SHA256 +TLS_DHE_PSK_WITH_NULL_SHA384 +TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 +TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 +TLS_RSA_PSK_WITH_NULL_SHA256 +TLS_RSA_PSK_WITH_NULL_SHA384 +TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 +TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 +TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256 +TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 +TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 +TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 +TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 +TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 +TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256 +TLS_SM4_GCM_SM3 +TLS_SM4_CCM_SM3 +TLS_EMPTY_RENEGOTIATION_INFO_SCSV +TLS_AES_128_GCM_SHA256 +TLS_AES_256_GCM_SHA384 +TLS_CHACHA20_POLY1305_SHA256 +TLS_AES_128_CCM_SHA256 +TLS_AES_128_CCM_8_SHA256 +TLS_AEGIS_256_SHA384 +TLS_AEGIS_128L_SHA256 +TLS_FALLBACK_SCSV +TLS_ECDH_ECDSA_WITH_NULL_SHA +TLS_ECDH_ECDSA_WITH_RC4_128_SHA +TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA +TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA +TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA +TLS_ECDHE_ECDSA_WITH_NULL_SHA +TLS_ECDHE_ECDSA_WITH_RC4_128_SHA +TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA +TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA +TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA +TLS_ECDH_RSA_WITH_NULL_SHA +TLS_ECDH_RSA_WITH_RC4_128_SHA +TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA +TLS_ECDH_RSA_WITH_AES_128_CBC_SHA +TLS_ECDH_RSA_WITH_AES_256_CBC_SHA +TLS_ECDHE_RSA_WITH_NULL_SHA +TLS_ECDHE_RSA_WITH_RC4_128_SHA +TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA +TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA +TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA +TLS_ECDH_anon_WITH_NULL_SHA +TLS_ECDH_anon_WITH_RC4_128_SHA +TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA +TLS_ECDH_anon_WITH_AES_128_CBC_SHA +TLS_ECDH_anon_WITH_AES_256_CBC_SHA +TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA +TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA +TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA +TLS_SRP_SHA_WITH_AES_128_CBC_SHA +TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA +TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA +TLS_SRP_SHA_WITH_AES_256_CBC_SHA +TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA +TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA +TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 +TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 +TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 +TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 +TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 +TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 +TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 +TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 +TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 +TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 +TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 +TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 +TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 +TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 +TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 +TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 +TLS_ECDHE_PSK_WITH_RC4_128_SHA +TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA +TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA +TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA +TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 +TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384 +TLS_ECDHE_PSK_WITH_NULL_SHA +TLS_ECDHE_PSK_WITH_NULL_SHA256 +TLS_ECDHE_PSK_WITH_NULL_SHA384 +TLS_RSA_WITH_ARIA_128_CBC_SHA256 +TLS_RSA_WITH_ARIA_256_CBC_SHA384 +TLS_DH_DSS_WITH_ARIA_128_CBC_SHA256 +TLS_DH_DSS_WITH_ARIA_256_CBC_SHA384 +TLS_DH_RSA_WITH_ARIA_128_CBC_SHA256 +TLS_DH_RSA_WITH_ARIA_256_CBC_SHA384 +TLS_DHE_DSS_WITH_ARIA_128_CBC_SHA256 +TLS_DHE_DSS_WITH_ARIA_256_CBC_SHA384 +TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256 +TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384 +TLS_DH_anon_WITH_ARIA_128_CBC_SHA256 +TLS_DH_anon_WITH_ARIA_256_CBC_SHA384 +TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256 +TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384 +TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256 +TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384 +TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256 +TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384 +TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256 +TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384 +TLS_RSA_WITH_ARIA_128_GCM_SHA256 +TLS_RSA_WITH_ARIA_256_GCM_SHA384 +TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256 +TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384 +TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256 +TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384 +TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256 +TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384 +TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256 +TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384 +TLS_DH_anon_WITH_ARIA_128_GCM_SHA256 +TLS_DH_anon_WITH_ARIA_256_GCM_SHA384 +TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 +TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 +TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 +TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 +TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 +TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 +TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 +TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 +TLS_PSK_WITH_ARIA_128_CBC_SHA256 +TLS_PSK_WITH_ARIA_256_CBC_SHA384 +TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256 +TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384 +TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256 +TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384 +TLS_PSK_WITH_ARIA_128_GCM_SHA256 +TLS_PSK_WITH_ARIA_256_GCM_SHA384 +TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256 +TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384 +TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256 +TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384 +TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256 +TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384 +TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 +TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 +TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 +TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 +TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 +TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_DH_RSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_DH_RSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_DHE_DSS_WITH_CAMELLIA_128_GCM_SHA256 +TLS_DHE_DSS_WITH_CAMELLIA_256_GCM_SHA384 +TLS_DH_DSS_WITH_CAMELLIA_128_GCM_SHA256 +TLS_DH_DSS_WITH_CAMELLIA_256_GCM_SHA384 +TLS_DH_anon_WITH_CAMELLIA_128_GCM_SHA256 +TLS_DH_anon_WITH_CAMELLIA_256_GCM_SHA384 +TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256 +TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384 +TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 +TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384 +TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256 +TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384 +TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256 +TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384 +TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256 +TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384 +TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 +TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 +TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 +TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 +TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 +TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 +TLS_RSA_WITH_AES_128_CCM +TLS_RSA_WITH_AES_256_CCM +TLS_DHE_RSA_WITH_AES_128_CCM +TLS_DHE_RSA_WITH_AES_256_CCM +TLS_RSA_WITH_AES_128_CCM_8 +TLS_RSA_WITH_AES_256_CCM_8 +TLS_DHE_RSA_WITH_AES_128_CCM_8 +TLS_DHE_RSA_WITH_AES_256_CCM_8 +TLS_PSK_WITH_AES_128_CCM +TLS_PSK_WITH_AES_256_CCM +TLS_DHE_PSK_WITH_AES_128_CCM +TLS_DHE_PSK_WITH_AES_256_CCM +TLS_PSK_WITH_AES_128_CCM_8 +TLS_PSK_WITH_AES_256_CCM_8 +TLS_PSK_DHE_WITH_AES_128_CCM_8 +TLS_PSK_DHE_WITH_AES_256_CCM_8 +TLS_ECDHE_ECDSA_WITH_AES_128_CCM +TLS_ECDHE_ECDSA_WITH_AES_256_CCM +TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 +TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8 +TLS_ECCPWD_WITH_AES_128_GCM_SHA256 +TLS_ECCPWD_WITH_AES_256_GCM_SHA384 +TLS_ECCPWD_WITH_AES_128_CCM_SHA256 +TLS_ECCPWD_WITH_AES_256_CCM_SHA384 +TLS_SHA256_SHA256 +TLS_SHA384_SHA384 +TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC +TLS_GOSTR341112_256_WITH_MAGMA_CTR_OMAC +TLS_GOSTR341112_256_WITH_28147_CNT_IMIT +TLS_GOSTR341112_256_WITH_KUZNYECHIK_MGM_L +TLS_GOSTR341112_256_WITH_MAGMA_MGM_L +TLS_GOSTR341112_256_WITH_KUZNYECHIK_MGM_S +TLS_GOSTR341112_256_WITH_MAGMA_MGM_S +TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 +TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 +TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 +TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 +TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 +TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256 +TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256 +TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 +TLS_ECDHE_PSK_WITH_AES_256_GCM_SHA384 +TLS_ECDHE_PSK_WITH_AES_128_CCM_8_SHA256 +TLS_ECDHE_PSK_WITH_AES_128_CCM_SHA256 diff --git a/crates/typos-cli/tests/cmd/ssl-cipher-suite.in/typos.toml b/crates/typos-cli/tests/cmd/ssl-cipher-suite.in/typos.toml new file mode 100644 index 0000000..c977b2a --- /dev/null +++ b/crates/typos-cli/tests/cmd/ssl-cipher-suite.in/typos.toml @@ -0,0 +1,4 @@ + [default] + extend-ignore-identifiers-re = [ + "\\bTLS_[A-Z0-9_]+(_anon_[A-Z0-9_]+)?\\b", + ] diff --git a/crates/typos-cli/tests/cmd/ssl-cipher-suite.toml b/crates/typos-cli/tests/cmd/ssl-cipher-suite.toml new file mode 100644 index 0000000..b731074 --- /dev/null +++ b/crates/typos-cli/tests/cmd/ssl-cipher-suite.toml @@ -0,0 +1,5 @@ +bin.name = "typos" +status.code = 0 +stdin = "" +stdout = "" +stderr = "" diff --git a/docs/reference.md b/docs/reference.md index 32ce1dd..5ea0ce5 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -33,3 +33,6 @@ Configuration is read from the following (in precedence order) | default.extend-words | \- | table of strings | Corrections for [words](./design.md#identifiers-and-words). When the correction is blank, the word is never valid. When the correction is the key, the word is always valid. | | type.\.\ | \ | \ | See `default.` for child keys. Run with `--type-list` to see available ``s | | type.\.extend-glob | \- | list of strings | File globs for matching `` | + +Common `extend-ignore-identifiers-re`: +- SSL Cipher suites: `"\\bTLS_[A-Z0-9_]+(_anon_[A-Z0-9_]+)?\\b"`