To permit an old client to connect to newer servers, the initial handshake contains
the MySQL Server version
the server's
capabilities
The client should only announce the capabilities in the Handshake Response Packet that it has in common with the server.
They can agree on:
SSL support
Compression