/* This function will check if the specified TLS handshake was done. */
BOOLEAN EFIAPI TlsInHandshake(IN VOID *Tls)
/* This function will check if the specified TLS handshake was done. */
BOOLEAN EFIAPI TlsInHandshake(IN VOID *Tls)
{
  TLS_CONNECTION  *TlsConn;
  TlsConn = (TLS_CONNECTION *)Tls;
  if ((TlsConn == NULL) || (TlsConn->Ssl == NULL)) {
    return FALSE;
  }
  return !SSL_is_init_finished (TlsConn->Ssl);
}