Skip to content
  • Daniel P. Berrangé's avatar
    tests: fix TLS handshake failure with TLS 1.3 · db0a8c70
    Daniel P. Berrangé authored
    
    
    When gnutls negotiates TLS 1.3 instead of 1.2, the order of messages
    sent by the handshake changes. This exposed a logic bug in the test
    suite which caused us to wait for the server to see handshake
    completion, but not wait for the client to see completion. The result
    was the client didn't receive the certificate for verification and the
    test failed.
    
    This is exposed in Fedora 29 rawhide which has just enabled TLS 1.3 in
    its GNUTLS builds.
    
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
    db0a8c70