8 #ifdef OPENDDS_SECURITY 9 #ifndef OPENDDS_DCPS_RTPS_ICE_STUN_H 10 #define OPENDDS_DCPS_RTPS_ICE_STUN_H 18 #if !defined (ACE_LACKS_PRAGMA_ONCE) 86 unsigned char message_integrity[20];
101 ACE_UINT16 length()
const;
147 std::memset(data, 0,
sizeof data);
189 : class_(
REQUEST), method(
BINDING), block(0), length_(0), length_for_message_integrity_(0) {}
191 void generate_transaction_id();
193 void clear_transaction_id();
197 attributes_.push_back(attribute);
198 length_ += (4 + attribute.
length() + 3) & ~3;
201 length_for_message_integrity_ = length_;
207 return attributes_.begin();
209 const_iterator
end()
const 211 return attributes_.end();
219 return length_for_message_integrity_;
222 std::vector<AttributeType> unknown_comprehension_required_attributes()
const;
224 bool get_priority(ACE_UINT32& priority)
const;
225 bool get_username(std::string& username)
const;
226 bool has_message_integrity()
const;
227 bool verify_message_integrity(
const std::string& password)
const;
228 void compute_message_integrity(
const std::string& password,
unsigned char message_integrity[20])
const;
229 bool has_error_code()
const;
230 ACE_UINT16 get_error_code()
const;
231 std::string get_error_reason()
const;
232 bool has_unknown_attributes()
const;
233 std::vector<AttributeType> get_unknown_attributes()
const;
234 bool has_fingerprint()
const;
235 ACE_UINT32 compute_fingerprint()
const;
236 bool has_ice_controlled()
const;
237 bool has_ice_controlling()
const;
238 bool has_use_candidate()
const;
std::vector< AttributeType > unknown_attributes
OpenDDS_Rtps_Export Attribute make_guid_prefix(const DCPS::GuidPrefix_t &guid_prefix)
const ACE_UINT32 MAGIC_COOKIE
Participant(Sender *a_sender)
ConstAttributeHolder(const Attribute &a, const TransactionId &t)
const_iterator begin() const
Attribute make_ice_controlled(ACE_UINT64 ice_tie_breaker)
Attribute make_username(const std::string &username)
const ACE_UINT16 UNAUTHORIZED
ssize_t send(ACE_HANDLE handle, const void *buf, size_t len, int flags, const ACE_Time_Value *timeout=0)
Christopher Diggins *renamed files *fixing compilation errors *adding Visual C project file *removed make Max Lybbert *removed references to missing and unused as reported by Andy Elvey and Dan Kosecki *resynced with Christopher Diggins s branch as it exists in tree building code is back Christopher Diggins *resynced codebase with Chris s branch *removed tree building code
Attribute make_xor_mapped_address(const ACE_INET_Addr &addr)
AttributesType attributes_
bool operator==(const DisjointSequence::OrderedRanges< T > &a, const DisjointSequence::OrderedRanges< T > &b)
Attribute make_use_candidate()
const ACE_UINT16 UNKNOWN_ATTRIBUTE
AttributeHolder(Attribute &a, const TransactionId &t)
ACE_UINT16 length_for_message_integrity() const
std::vector< Attribute > AttributesType
const TransactionId & tid
ACE_UINT16 length_for_message_integrity_
Class to serialize and deserialize data for DDS.
const ACE_UINT16 BAD_REQUEST
#define OpenDDS_Rtps_Export
ACE_Message_Block * block
Attribute make_ice_controlling(ACE_UINT64 ice_tie_breaker)
Attribute make_error_code(ACE_UINT16 code, const std::string &reason)
Attribute make_message_integrity()
bool operator>>(DCPS::Serializer &serializer, AttributeHolder &holder)
Attribute make_fingerprint()
bool operator!=(const GUID_t &lhs, const GUID_t &rhs)
ACE_UINT16 length() const
unsigned long long ACE_UINT64
void append_attribute(const Attribute &attribute)
const_iterator end() const
Attribute make_unknown_attribute(ACE_UINT16 type, ACE_UINT16 length)
Attribute make_unknown_attributes(const std::vector< AttributeType > &unknown_attributes)
AttributesType::const_iterator const_iterator
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
const TransactionId & tid
Attribute make_mapped_address(const ACE_INET_Addr &addr)
const DCPS::Encoding encoding(DCPS::Encoding::KIND_UNALIGNED_CDR, DCPS::ENDIAN_BIG)
ACE_UINT64 ice_tie_breaker
TransactionId transaction_id
The Internal API and Implementation of OpenDDS.
ACE_UINT16 unknown_length
ACE_UINT16 length() const
Attribute make_priority(ACE_UINT32 priority)
bool operator<(const GUID_t &lhs, const GUID_t &rhs)
const Attribute & attribute
ACE_INET_Addr mapped_address
bool operator<<(DCPS::Serializer &serializer, ConstAttributeHolder &holder)