mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-03 23:35:26 +01:00 
			
		
		
		
	Check server's response
There is code at the beginning of parse_tls_serverhello() that checks whether the server's response appears to consist of a sequence of messages of the form <protocol><content type><content>. However, at the moment the check is only performed if "$do_starttls" is false. This commit changes parse_tls_serverhello() so that the check is always performed.
This commit is contained in:
		@@ -12793,7 +12793,8 @@ parse_tls_serverhello() {
 | 
				
			|||||||
                    [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt
 | 
					                    [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt
 | 
				
			||||||
                    return 3
 | 
					                    return 3
 | 
				
			||||||
               fi
 | 
					               fi
 | 
				
			||||||
          elif [[ $tls_content_type != 14 ]] && [[ $tls_content_type != 15 ]] && \
 | 
					          fi
 | 
				
			||||||
 | 
					          if [[ $tls_content_type != 14 ]] && [[ $tls_content_type != 15 ]] && \
 | 
				
			||||||
               [[ $tls_content_type != 16 ]] && [[ $tls_content_type != 17 ]]; then
 | 
					               [[ $tls_content_type != 16 ]] && [[ $tls_content_type != 17 ]]; then
 | 
				
			||||||
               debugme tmln_warning "Content type other than alert, handshake, change cipher spec, or application data detected."
 | 
					               debugme tmln_warning "Content type other than alert, handshake, change cipher spec, or application data detected."
 | 
				
			||||||
               [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt
 | 
					               [[ $DEBUG -ge 1 ]] && tmpfile_handle ${FUNCNAME[0]}.txt
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user