Commit b48f8e6c authored by Youness Alaoui's avatar Youness Alaoui

fix indentation issues

parent cb29f9e7
This diff is collapsed.
...@@ -106,7 +106,7 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg, ...@@ -106,7 +106,7 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg,
} }
if ((compatibility == STUN_USAGE_TURN_COMPATIBILITY_DRAFT9 || if ((compatibility == STUN_USAGE_TURN_COMPATIBILITY_DRAFT9 ||
compatibility == STUN_USAGE_TURN_COMPATIBILITY_RFC5766) && compatibility == STUN_USAGE_TURN_COMPATIBILITY_RFC5766) &&
request_props != STUN_USAGE_TURN_REQUEST_PORT_NORMAL) { request_props != STUN_USAGE_TURN_REQUEST_PORT_NORMAL) {
uint32_t req = 0; uint32_t req = 0;
...@@ -223,40 +223,40 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg, ...@@ -223,40 +223,40 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg,
struct sockaddr *peer, struct sockaddr *peer,
StunUsageTurnCompatibility compatibility) StunUsageTurnCompatibility compatibility)
{ {
stun_agent_init_request (agent, msg, buffer, buffer_len, stun_agent_init_request (agent, msg, buffer, buffer_len,
STUN_CREATEPERMISSION); STUN_CREATEPERMISSION);
/* PEER address */ /* PEER address */
if (peer) { if (peer) {
if (stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_PEER_ADDRESS, if (stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_PEER_ADDRESS,
peer, sizeof(*peer)) != STUN_MESSAGE_RETURN_SUCCESS) { peer, sizeof(*peer)) != STUN_MESSAGE_RETURN_SUCCESS) {
return 0; return 0;
} }
} }
/* nonce */ /* nonce */
if (nonce != NULL) { if (nonce != NULL) {
if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_NONCE, if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_NONCE,
nonce, nonce_len) != STUN_MESSAGE_RETURN_SUCCESS) nonce, nonce_len) != STUN_MESSAGE_RETURN_SUCCESS)
return 0; return 0;
} }
/* realm */ /* realm */
if (realm != NULL) { if (realm != NULL) {
if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_REALM, if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_REALM,
realm, realm_len) != STUN_MESSAGE_RETURN_SUCCESS) realm, realm_len) != STUN_MESSAGE_RETURN_SUCCESS)
return 0; return 0;
} }
/* username */ /* username */
if (username != NULL) { if (username != NULL) {
if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_USERNAME, if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_USERNAME,
username, username_len) != STUN_MESSAGE_RETURN_SUCCESS) username, username_len) != STUN_MESSAGE_RETURN_SUCCESS)
return 0; return 0;
} }
stun_debug("before stun_agent_finish_message \n"); stun_debug("before stun_agent_finish_message \n");
return stun_agent_finish_message (agent, msg, password, password_len); return stun_agent_finish_message (agent, msg, password, password_len);
} }
...@@ -339,7 +339,7 @@ StunUsageTurnReturn stun_usage_turn_process (StunMessage *msg, ...@@ -339,7 +339,7 @@ StunUsageTurnReturn stun_usage_turn_process (StunMessage *msg,
return STUN_USAGE_TURN_RETURN_ERROR; return STUN_USAGE_TURN_RETURN_ERROR;
} }
} else if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_MSN || } else if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_MSN ||
compatibility == STUN_USAGE_TURN_COMPATIBILITY_OC2007) { compatibility == STUN_USAGE_TURN_COMPATIBILITY_OC2007) {
val = stun_message_find_addr (msg, val = stun_message_find_addr (msg,
STUN_ATTRIBUTE_MSN_MAPPED_ADDRESS, addr, addrlen); STUN_ATTRIBUTE_MSN_MAPPED_ADDRESS, addr, addrlen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment