Incorrect handling of the flags prevented users from setting up TLS connections to the MySQL server. Fixes #320