/* This function sets the verification mode flags for the TLS connection. */
VOID EFIAPI TlsSetVerify(IN VOID *Tls, IN UINT32 VerifyMode)
/* This function sets the verification mode flags for the TLS connection. */
VOID EFIAPI TlsSetVerify(IN VOID *Tls, IN UINT32 VerifyMode)
{
  TLS_CONNECTION  *TlsConn;
  TlsConn = (TLS_CONNECTION *)Tls;
  if ((TlsConn == NULL) || (TlsConn->Ssl == NULL)) {
    return;
  }
  SSL_set_verify (TlsConn->Ssl, VerifyMode, NULL);
}