/* This function will attempt to read BufferSize bytes from the TLS object and places the data in Buffer. */
INTN EFIAPI TlsCtrlTrafficOut(IN VOID *Tls, IN OUT VOID *Buffer, IN UINTN BufferSize)
/* This function will attempt to read BufferSize bytes from the TLS object and places the data in Buffer. */
INTN EFIAPI TlsCtrlTrafficOut(IN VOID *Tls, IN OUT VOID *Buffer, IN UINTN BufferSize)
{
  TLS_CONNECTION  *TlsConn;
  TlsConn = (TLS_CONNECTION *)Tls;
  if ((TlsConn == NULL) || (TlsConn->OutBio == 0)) {
    return -1;
  }
  return BIO_read (TlsConn->OutBio, Buffer, (UINT32)BufferSize);
}