@@ -1720,6 +1720,14 @@ void outputCipher(struct sslCheckOptions *options, SSL *ssl, const char *cleanSs
17201720 } else
17211721 printf ("%s " , cleanSslMethod );
17221722
1723+ // Short authentication tag length
1724+ // These are flagged as 64 bit strength in newer versions of OpenSSL
1725+ // But in older versions they'll still show as 256 bits, so override that here
1726+ // See https://github.com/openssl/openssl/pull/16652
1727+ if (strstr (ciphername , "CCM8" )) {
1728+ cipherbits = 64 ;
1729+ }
1730+
17231731 if (cipherbits < 10 )
17241732 tempInt = 2 ;
17251733 else if (cipherbits < 100 )
@@ -1778,6 +1786,18 @@ void outputCipher(struct sslCheckOptions *options, SSL *ssl, const char *cleanSs
17781786 printf ("%s%-29s%s" , COL_YELLOW , ciphername , RESET );
17791787 }
17801788 strength = "medium" ;
1789+ } else if (strstr (ciphername , "CCM8" )) {
1790+ // Short authentication tag length
1791+ // These are flagged as 64 bit strength in newer versions of OpenSSL
1792+ // But in older versions they'll still show as 256 bits, so manually flag them here
1793+ // See https://github.com/openssl/openssl/pull/16652
1794+ if (options -> ianaNames ) {
1795+ printf ("%s%-45s%s" , COL_YELLOW , ciphername , RESET );
1796+ }
1797+ else {
1798+ printf ("%s%-29s%s" , COL_YELLOW , ciphername , RESET );
1799+ }
1800+ strength = "medium" ;
17811801 } else if (strstr (ciphername , "_SM4_" )) { /* Developed by Chinese government */
17821802 if (options -> ianaNames ) {
17831803 printf ("%s%-45s%s" , COL_YELLOW , ciphername , RESET );
0 commit comments