public static bool PeersAreEqual (SecProtocolMetadata metadataA, SecProtocolMetadata metadataB) { if (metadataA == null) return metadataB == null; else if (metadataB == null) return false; // This was tested in a native app. We do copy the behaviour. return sec_protocol_metadata_peers_are_equal (metadataA.GetCheckedHandle (), metadataB.GetCheckedHandle ()); }
public static bool ChallengeParametersAreEqual(SecProtocolMetadata metadataA, SecProtocolMetadata metadataB) { if (metadataA == null) { return(metadataB == null); } else if (metadataB == null) { return(false); // This was tested in a native app. We do copy the behaviour. } return(sec_protocol_metadata_challenge_parameters_are_equal(metadataA.GetCheckedHandle(), metadataB.GetCheckedHandle())); }