WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJNATH Reference

stun_auth.h File Reference

STUN authentication. More...

Go to the source code of this file.

Data Structures

struct  pj_stun_auth_cred
 
struct  pj_stun_req_cred_info
 

Enumerations

enum  pj_stun_auth_type {
  PJ_STUN_AUTH_NONE = 0 ,
  PJ_STUN_AUTH_SHORT_TERM = 1 ,
  PJ_STUN_AUTH_LONG_TERM = 2
}
 
enum  pj_stun_auth_cred_type {
  PJ_STUN_AUTH_CRED_STATIC ,
  PJ_STUN_AUTH_CRED_DYNAMIC
}
 
enum  pj_stun_passwd_type {
  PJ_STUN_PASSWD_PLAIN = 0 ,
  PJ_STUN_PASSWD_HASHED = 1
}
 

Functions

void pj_stun_auth_cred_dup (pj_pool_t *pool, pj_stun_auth_cred *dst, const pj_stun_auth_cred *src)
 
void pj_stun_req_cred_info_dup (pj_pool_t *pool, pj_stun_req_cred_info *dst, const pj_stun_req_cred_info *src)
 
void pj_stun_create_key (pj_pool_t *pool, pj_str_t *key, const pj_str_t *realm, const pj_str_t *username, pj_stun_passwd_type data_type, const pj_str_t *data)
 
pj_status_t pj_stun_authenticate_request (const pj_uint8_t *pkt, unsigned pkt_len, const pj_stun_msg *msg, pj_stun_auth_cred *cred, pj_pool_t *pool, pj_stun_req_cred_info *info, pj_stun_msg **p_response)
 
pj_bool_t pj_stun_auth_valid_for_msg (const pj_stun_msg *msg)
 
pj_status_t pj_stun_authenticate_response (const pj_uint8_t *pkt, unsigned pkt_len, const pj_stun_msg *msg, const pj_str_t *key)
 

 


PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.