mariadb/mysql-test/t/openssl_1.test
unknown 5f016696ec openssl_1.result, openssl_1.test:
Aligned test with regenerated SSL certs
Many files:
  Regenerated expired certificates


SSL/cacert.pem:
  Regenerated expired certificates
SSL/client-cert.pem:
  Regenerated expired certificates
SSL/client-key.pem:
  Regenerated expired certificates
SSL/client-req.pem:
  Regenerated expired certificates
SSL/server-cert.pem:
  Regenerated expired certificates
SSL/server-key.pem:
  Regenerated expired certificates
SSL/server-req.pem:
  Regenerated expired certificates
mysql-test/t/openssl_1.test:
  Aligned test with regenerated SSL certs
mysql-test/r/openssl_1.result:
  Aligned test with regenerated SSL certs
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
2003-08-07 15:20:15 +02:00

43 lines
1.4 KiB
Text

# We test openssl. Result set is optimized to be compiled with --with-openssl.
# Use mysql-test-run with --with-openssl option.
-- source include/have_openssl_1.inc
drop table if exists t1;
create table t1(f1 int);
insert into t1 values (5);
grant select on test.* to ssl_user1@localhost require SSL;
grant select on test.* to ssl_user2@localhost require cipher "EDH-RSA-DES-CBC3-SHA";
grant select on test.* to ssl_user3@localhost require cipher "EDH-RSA-DES-CBC3-SHA" AND SUBJECT "/C=SE/L=Uppsala/O=MySQL AB/CN=MySQL Client/Email=abstract.mysql.developer@mysql.com";
grant select on test.* to ssl_user4@localhost require cipher "EDH-RSA-DES-CBC3-SHA" AND SUBJECT "/C=SE/L=Uppsala/O=MySQL AB/CN=MySQL Client/Email=abstract.mysql.developer@mysql.com" ISSUER "/C=SE/L=Uppsala/O=MySQL AB/CN=Abstract MySQL Developer/Email=abstract.mysql.developer@mysql.com";
flush privileges;
connect (con1,localhost,ssl_user1,,);
connect (con2,localhost,ssl_user2,,);
connect (con3,localhost,ssl_user3,,);
connect (con4,localhost,ssl_user4,,);
connection con1;
select * from t1;
--error 1044;
delete from t1;
connection con2;
select * from t1;
--error 1044;
delete from t1;
connection con3;
select * from t1;
--error 1044;
delete from t1;
connection con4;
select * from t1;
--error 1044;
delete from t1;
connection default;
delete from mysql.user where user='ssl_user%';
delete from mysql.db where user='ssl_user%';
flush privileges;
drop table t1;