mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix the enable-ssl-trace config option
The recent removal of static ECDH broke the enable-ssl-trace compilation. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
		
							parent
							
								
									04b76df3f7
								
							
						
					
					
						commit
						c6f9019b69
					
				|  | @ -920,14 +920,6 @@ static int ssl_get_keyex(const char **pname, SSL *ssl) | ||||||
|         *pname = "ECDHE"; |         *pname = "ECDHE"; | ||||||
|         return SSL_kECDHE; |         return SSL_kECDHE; | ||||||
|     } |     } | ||||||
|     if (alg_k & SSL_kECDHr) { |  | ||||||
|         *pname = "ECDH RSA"; |  | ||||||
|         return SSL_kECDHr; |  | ||||||
|     } |  | ||||||
|     if (alg_k & SSL_kECDHe) { |  | ||||||
|         *pname = "ECDH ECDSA"; |  | ||||||
|         return SSL_kECDHe; |  | ||||||
|     } |  | ||||||
|     if (alg_k & SSL_kPSK) { |     if (alg_k & SSL_kPSK) { | ||||||
|         *pname = "PSK"; |         *pname = "PSK"; | ||||||
|         return SSL_kPSK; |         return SSL_kPSK; | ||||||
|  | @ -990,13 +982,6 @@ static int ssl_print_client_keyex(BIO *bio, int indent, SSL *ssl, | ||||||
|             return 0; |             return 0; | ||||||
|         break; |         break; | ||||||
| 
 | 
 | ||||||
|     case SSL_kECDHr: |  | ||||||
|     case SSL_kECDHe: |  | ||||||
|         if (msglen == 0) { |  | ||||||
|             BIO_indent(bio, indent + 2, 80); |  | ||||||
|             BIO_puts(bio, "implicit\n"); |  | ||||||
|             break; |  | ||||||
|         } |  | ||||||
|     case SSL_kECDHE: |     case SSL_kECDHE: | ||||||
|     case SSL_kECDHEPSK: |     case SSL_kECDHEPSK: | ||||||
|         if (!ssl_print_hexbuf(bio, indent + 2, "ecdh_Yc", 1, &msg, &msglen)) |         if (!ssl_print_hexbuf(bio, indent + 2, "ecdh_Yc", 1, &msg, &msglen)) | ||||||
|  | @ -1022,13 +1007,6 @@ static int ssl_print_server_keyex(BIO *bio, int indent, SSL *ssl, | ||||||
|             return 0; |             return 0; | ||||||
|     } |     } | ||||||
|     switch (id) { |     switch (id) { | ||||||
|         /* Should never happen */ |  | ||||||
|     case SSL_kECDHr: |  | ||||||
|     case SSL_kECDHe: |  | ||||||
|         BIO_indent(bio, indent + 2, 80); |  | ||||||
|         BIO_printf(bio, "Unexpected Message\n"); |  | ||||||
|         break; |  | ||||||
| 
 |  | ||||||
|     case SSL_kRSA: |     case SSL_kRSA: | ||||||
| 
 | 
 | ||||||
|         if (!ssl_print_hexbuf(bio, indent + 2, "rsa_modulus", 2, |         if (!ssl_print_hexbuf(bio, indent + 2, "rsa_modulus", 2, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue