mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	Merge branch '2.9dev' into rfc-only
This commit is contained in:
		@@ -9138,6 +9138,8 @@ socksend_tls_clienthello() {
 | 
				
			|||||||
#                   "ephemeralkey" - extract the server's ephemeral key (if any)
 | 
					#                   "ephemeralkey" - extract the server's ephemeral key (if any)
 | 
				
			||||||
# arg4: (optional) additional request extensions
 | 
					# arg4: (optional) additional request extensions
 | 
				
			||||||
# arg5: (optional) "true" if ClientHello should advertise compression methods other than "NULL"
 | 
					# arg5: (optional) "true" if ClientHello should advertise compression methods other than "NULL"
 | 
				
			||||||
 | 
					# return: 0: successful connect   | 1: protocol or cipher not available | 2: as (0) but downgraded
 | 
				
			||||||
 | 
					#         6: couldn't open socket | 7: couldn't open temp file
 | 
				
			||||||
tls_sockets() {
 | 
					tls_sockets() {
 | 
				
			||||||
     local -i ret=0
 | 
					     local -i ret=0
 | 
				
			||||||
     local -i save=0
 | 
					     local -i save=0
 | 
				
			||||||
@@ -9874,6 +9876,7 @@ run_sweet32() {
 | 
				
			|||||||
     if "$using_sockets"; then
 | 
					     if "$using_sockets"; then
 | 
				
			||||||
          tls_sockets "03" "${sweet32_ciphers_hex}"
 | 
					          tls_sockets "03" "${sweet32_ciphers_hex}"
 | 
				
			||||||
          sclient_success=$?
 | 
					          sclient_success=$?
 | 
				
			||||||
 | 
					          [[ "$sclient_success" -eq 2 ]] && sclient_success=0
 | 
				
			||||||
     else
 | 
					     else
 | 
				
			||||||
          nr_sweet32_ciphers=$(count_ciphers $sweet32_ciphers)
 | 
					          nr_sweet32_ciphers=$(count_ciphers $sweet32_ciphers)
 | 
				
			||||||
          nr_supported_ciphers=$(count_ciphers $(actually_supported_ciphers $sweet32_ciphers))
 | 
					          nr_supported_ciphers=$(count_ciphers $(actually_supported_ciphers $sweet32_ciphers))
 | 
				
			||||||
@@ -10711,6 +10714,7 @@ run_lucky13() {
 | 
				
			|||||||
     if "$using_sockets"; then
 | 
					     if "$using_sockets"; then
 | 
				
			||||||
          tls_sockets "03" "${cbc_ciphers_hex}"
 | 
					          tls_sockets "03" "${cbc_ciphers_hex}"
 | 
				
			||||||
          sclient_success=$?
 | 
					          sclient_success=$?
 | 
				
			||||||
 | 
					          [[ "$sclient_success" -eq 2 ]] && sclient_success=0
 | 
				
			||||||
     else
 | 
					     else
 | 
				
			||||||
          nr_cbc_ciphers=$(count_ciphers $cbc_ciphers)
 | 
					          nr_cbc_ciphers=$(count_ciphers $cbc_ciphers)
 | 
				
			||||||
          nr_supported_ciphers=$(count_ciphers $(actually_supported_ciphers $cbc_ciphers))
 | 
					          nr_supported_ciphers=$(count_ciphers $(actually_supported_ciphers $cbc_ciphers))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user