/* This function will attempt to write BufferSize bytes data from the Buffer to the TLS object. */
INTN EFIAPI TlsCtrlTrafficIn(IN VOID *Tls, IN VOID *Buffer, IN UINTN BufferSize)
/* This function will attempt to write BufferSize bytes data from the Buffer to the TLS object. */
INTN EFIAPI TlsCtrlTrafficIn(IN VOID *Tls, IN VOID *Buffer, IN UINTN BufferSize)
{
  TLS_CONNECTION  *TlsConn;
  TlsConn = (TLS_CONNECTION *)Tls;
  if ((TlsConn == NULL) || (TlsConn->InBio == 0)) {
    return -1;
  }
  return BIO_write (TlsConn->InBio, Buffer, (UINT32)BufferSize);
}