Skip to content

Commit

Permalink
Add warning about GetDiscriminator
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed Jun 14, 2024
1 parent 65ce85f commit df49964
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/protocols/secure_channel/RendezvousParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class RendezvousParameters
// discriminators.
bool HasDiscriminator() const { return mHasDiscriminator; }

// Obtains the long version of the discriminator, or 0 if short.
// WARNING: This is lossy and a bad idea to use. The correct method to use
// is GetSetupDiscriminator(). This method exists for public
// API backwards compatibility.
uint16_t GetDiscriminator() const
{
if (mSetupDiscriminator.IsShortDiscriminator())
Expand Down

0 comments on commit df49964

Please sign in to comment.