mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 10:56:12 +01:00 
			
		
		
		
	 4eac842c8f
			
		
	
	
	4eac842c8f
	
	
	
		
			
			Adjust test after fixing the C/C. On Windows, use --host=127.0.0.2 to fake "insecure" transport with TCP connection for test purposes. 127.0.0.2 is loopback address, that can be used instead of usual 127.0.0.1 Unfortunately, this technique does not work on all *nixes the same, notably neither on BSDs nor Solaris. Thus default --host=localhost remains "insecure" transport,when TCP is used. but it is not that critical, the "self-signed" is not nearly as annoying on *nixes as it is on Windows.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| --- ssl_autoverify.result	2024-02-08 23:55:13.779166100 +0100
 | |
| +++ ssl_autoverify,win.reject	2024-02-08 23:55:46.988212400 +0100
 | |
| @@ -22,9 +22,9 @@
 | |
|  WARNING: option --ssl-verify-server-cert is disabled, because of an insecure passwordless login.
 | |
|  test.have_ssl()
 | |
|  yes
 | |
| -# mysql --protocol socket -uroot --ssl-verify-server-cert -e "select test.have_ssl()"
 | |
| +# mysql --protocol pipe -uroot --ssl-verify-server-cert -e "select test.have_ssl()"
 | |
|  test.have_ssl()
 | |
| -yes
 | |
| +no
 | |
|  # mysql --protocol tcp --host 127.0.0.1 -uroot --ssl-verify-server-cert -e "select test.have_ssl()"
 | |
|  test.have_ssl()
 | |
|  yes
 | |
| @@ -45,16 +45,6 @@
 | |
|  # mysql -umulti -ppw2 --ssl-verify-server-cert -e "select test.have_ssl()"
 | |
|  test.have_ssl()
 | |
|  yes
 | |
| ->> MitM active <<
 | |
| -# mysql -uroot --disable-ssl-verify-server-cert -e "select 'Detecting MitM' as MitM, test.have_ssl()"
 | |
| -MitM	test.have_ssl()
 | |
| -No MitM found!	yes
 | |
| ->> MitM active <<
 | |
| -# mysql -unative -pfoo --ssl-verify-server-cert -e "select 'Detecting MitM', test.have_ssl()"
 | |
| -ERROR 2026 (HY000): TLS/SSL error: Failed to verify the server certificate
 | |
| ->> MitM active <<
 | |
| -# mysql -ued -pbar --ssl-verify-server-cert -e "select 'Detecting MitM', test.have_ssl()"
 | |
| -ERROR 2026 (HY000): TLS/SSL error: Failed to verify the server certificate
 | |
|  drop function have_ssl;
 | |
|  drop user native@'%';
 | |
|  drop user ed@'%';
 |