diff options
Diffstat (limited to 'pjnath/src/pjnath-test')
-rw-r--r-- | pjnath/src/pjnath-test/server.c | 2 | ||||
-rw-r--r-- | pjnath/src/pjnath-test/stun.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/pjnath/src/pjnath-test/server.c b/pjnath/src/pjnath-test/server.c index 0b07180d..7491d9da 100644 --- a/pjnath/src/pjnath-test/server.c +++ b/pjnath/src/pjnath-test/server.c @@ -424,7 +424,7 @@ static pj_bool_t turn_on_data_recvfrom(pj_activesock_t *asock, //pj_str_t ip_addr; pj_stun_username_attr *uname; pj_activesock_cb alloc_sock_cb; - turn_allocation *alloc; + ///turn_allocation *alloc; /* Must be Allocate request */ if (req->hdr.type != PJ_STUN_ALLOCATE_REQUEST) { diff --git a/pjnath/src/pjnath-test/stun.c b/pjnath/src/pjnath-test/stun.c index c530cf1c..51afc0dd 100644 --- a/pjnath/src/pjnath-test/stun.c +++ b/pjnath/src/pjnath-test/stun.c @@ -692,7 +692,7 @@ static int fingerprint_test_vector() if (v->options & USE_MESSAGE_INTEGRITY) { if (PJ_STUN_IS_REQUEST(msg->hdr.type)) { pj_stun_auth_cred cred; - pj_status_t status; + pj_status_t status2; pj_bzero(&cred, sizeof(cred)); cred.type = PJ_STUN_AUTH_CRED_STATIC; @@ -701,11 +701,11 @@ static int fingerprint_test_vector() cred.data.static_cred.data = pj_str(v->password); cred.data.static_cred.nonce = pj_str(v->nonce); - status = pj_stun_authenticate_request(buf, (unsigned)len, msg, + status2 = pj_stun_authenticate_request(buf, (unsigned)len, msg, &cred, pool, NULL, NULL); - if (status != PJ_SUCCESS) { + if (status2 != PJ_SUCCESS) { char errmsg[PJ_ERR_MSG_SIZE]; - pj_strerror(status, errmsg, sizeof(errmsg)); + pj_strerror(status2, errmsg, sizeof(errmsg)); PJ_LOG(1,(THIS_FILE, " Request authentication failed: %s", errmsg)); @@ -714,12 +714,12 @@ static int fingerprint_test_vector() } } else if (PJ_STUN_IS_RESPONSE(msg->hdr.type)) { - pj_status_t status; - status = pj_stun_authenticate_response(buf, (unsigned)len, + pj_status_t status2; + status2 = pj_stun_authenticate_response(buf, (unsigned)len, msg, &key); - if (status != PJ_SUCCESS) { + if (status2 != PJ_SUCCESS) { char errmsg[PJ_ERR_MSG_SIZE]; - pj_strerror(status, errmsg, sizeof(errmsg)); + pj_strerror(status2, errmsg, sizeof(errmsg)); PJ_LOG(1,(THIS_FILE, " Response authentication failed: %s", errmsg)); |