• Dmitry Shulga's avatar
    MDEV-32123: require_secure_transport doesn't allow TCP connections · a05b5dd5
    Dmitry Shulga authored
    In case the option require_secure_transport is on the user can't
    establish a secure ssl connection over TCP protocol. Inability to set up
    a ssl session over TCP was caused by the fact that a type of client's
    connection was checked before ssl handshake performed (ssl handshake
    happens at the function acl_authenticate()). At that moment vio type has
    the value VIO_TYPE_TCPIP for client connection that uses TCP transport.
    In result, checking for allowable vio type for fails despite the fact
    that SSL session being established. To fix the issue move checking of
    vio type for allowable values inside the function
      parse_client_handshake_packet()
    right after client's capabilities discovered that SSL is not requested
    by the client.
    a05b5dd5
require_secure_transport.result 722 Bytes