mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +01:00 
			
		
		
		
	Merge pull request #609 from dcooper16/handle_supported_groups
Handle renaming of the Supported Elliptic Curves Extension
This commit is contained in:
		
							
								
								
									
										12
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								testssl.sh
									
									
									
									
									
								
							| @@ -5445,7 +5445,10 @@ determine_tls_extensions() { | |||||||
|                success=$? |                success=$? | ||||||
|           fi |           fi | ||||||
|           if [[ $success -eq 0 ]]; then |           if [[ $success -eq 0 ]]; then | ||||||
|                tls_extensions=$(grep -a 'TLS server extension ' $TMPFILE | sed -e 's/TLS server extension //g' -e 's/\" (id=/\/#/g' -e 's/,.*$/,/g' -e 's/),$/\"/g') |                tls_extensions=$(grep -a 'TLS server extension ' $TMPFILE | \ | ||||||
|  |                     sed -e 's/TLS server extension //g' -e 's/\" (id=/\/#/g' \ | ||||||
|  |                         -e 's/,.*$/,/g' -e 's/),$/\"/g' \ | ||||||
|  |                         -e 's/elliptic curves\/#10/supported_groups\/#10/g') | ||||||
|                tls_extensions=$(echo $tls_extensions)       # into one line |                tls_extensions=$(echo $tls_extensions)       # into one line | ||||||
|           fi |           fi | ||||||
|           tmpfile_handle $FUNCNAME.txt |           tmpfile_handle $FUNCNAME.txt | ||||||
| @@ -5537,7 +5540,10 @@ get_server_certificate() { | |||||||
|      # this is not beautiful (grep+sed) |      # this is not beautiful (grep+sed) | ||||||
|      # but maybe we should just get the ids and do a private matching, according to |      # but maybe we should just get the ids and do a private matching, according to | ||||||
|      # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml |      # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml | ||||||
|      tls_extensions=$(grep -a 'TLS server extension ' $TMPFILE | sed -e 's/TLS server extension //g' -e 's/\" (id=/\/#/g' -e 's/,.*$/,/g' -e 's/),$/\"/g') |      tls_extensions=$(grep -a 'TLS server extension ' $TMPFILE | \ | ||||||
|  |           sed -e 's/TLS server extension //g' -e 's/\" (id=/\/#/g' \ | ||||||
|  |               -e 's/,.*$/,/g' -e 's/),$/\"/g' \ | ||||||
|  |               -e 's/elliptic curves\/#10/supported_groups\/#10/g') | ||||||
|      tls_extensions=$(echo $tls_extensions)       # into one line |      tls_extensions=$(echo $tls_extensions)       # into one line | ||||||
|  |  | ||||||
|      # check to see if any new TLS extensions were returned and add any new ones to TLS_EXTENSIONS |      # check to see if any new TLS extensions were returned and add any new ones to TLS_EXTENSIONS | ||||||
| @@ -8061,7 +8067,7 @@ parse_tls_serverhello() { | |||||||
|                     0007) tls_extensions+=" \"client authz/#7\"" ;; |                     0007) tls_extensions+=" \"client authz/#7\"" ;; | ||||||
|                     0008) tls_extensions+=" \"server authz/#8\"" ;; |                     0008) tls_extensions+=" \"server authz/#8\"" ;; | ||||||
|                     0009) tls_extensions+=" \"cert type/#9\"" ;; |                     0009) tls_extensions+=" \"cert type/#9\"" ;; | ||||||
|                     000A) tls_extensions+=" \"supported groups/#10\"" ;; |                     000A) tls_extensions+=" \"supported_groups/#10\"" ;; | ||||||
|                     000B) tls_extensions+=" \"EC point formats/#11\"" ;; |                     000B) tls_extensions+=" \"EC point formats/#11\"" ;; | ||||||
|                     000C) tls_extensions+=" \"SRP/#12\"" ;; |                     000C) tls_extensions+=" \"SRP/#12\"" ;; | ||||||
|                     000D) tls_extensions+=" \"signature algorithms/#13\"" ;; |                     000D) tls_extensions+=" \"signature algorithms/#13\"" ;; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter