Commit 203de12a authored by Kai Vehmanen's avatar Kai Vehmanen

Refactored the nua_glib authentication interface.

darcs-hash:20060530161835-7659e-499009c684d16d0fa30d6a726e5083e4e7c8a97a.gz
parent 62eb0562
......@@ -8,7 +8,6 @@ Changes since last release
<changes since last written in freshmeat.net "Changes:" style;
and in less than 10 lines />
API/ABI changes and versioning
------------------------------
......@@ -18,10 +17,19 @@ API/ABI changes and versioning
other important information to developers;
- and should be updated _continuously_! />
- nua_glib.h: renamed glib property 'stun' to 'stun-server',
removed property 'bind-address' (same as 'contact').
[libsofia-sip-ua]
- Added sip_route_reverse_as() and sip_route_fixdup_as().
[libsofia-sip-ua-glib]
- nua_glib: Changes in object properties.
- renamed 'stun' to 'stun-server'
- renamed 'bind-address' to 'contact'
- added 'proxy' and 'registrar' URI properties
- nua_glib.h: Refactored the nua_glib authentication API.
- added 'auth-required' signal
- added 'password' property, removed 'authinfo' property.
- added nua_glib_auth_add() and nua_glib_auth_clear
Contributors to this release
----------------------------
......
This diff is collapsed.
......@@ -7,4 +7,5 @@ VOID:POINTER,POINTER
VOID:POINTER,STRING,STRING,STRING,POINTER
VOID:POINTER,STRING,STRING,STRING,STRING
VOID:POINTER,STRING,STRING,STRING
VOID:POINTER,STRING,STRING
VOID:INT,STRING
......@@ -107,7 +107,9 @@ struct _NuaGlibOp {
unsigned op_referred : 1;
unsigned :0;
gpointer data;
GSList *op_authlist;
gpointer data;
};
......@@ -121,11 +123,11 @@ struct _NuaGlibPrivate {
unsigned init : 1; /**< True if class is inited */
gchar *address; /**< our SIP address (address-of-record) */
gchar *password; /**< SIP account password */
gchar *contact; /**< contact URI (local address) */
gchar *proxy; /**< outgoing proxy URI (optional, otherwise from DNS) */
gchar *registrar; /**< registrar URI (optional, otherwise from DNS) */
gchar *stun_server; /**< STUN server URI (optional, otherwise from DNS) */
gchar *authinfo; /**< authorization info used by this UA*/
nua_t *nua; /**< Pointer to NUA object */
NuaGlibOp *operations; /**< Remote destinations */
......
......@@ -84,7 +84,6 @@ typedef enum {
| NUA_GLIB_MEDIA_RECVONLY
} NuaGlibMediaActive;
NuaGlibOp * nua_glib_invite (NuaGlib *self, const char *destination, const char *local_sdp);
void nua_glib_answer (NuaGlib *self, NuaGlibOp *op, int status, const char *phrase, const char *sdp);
......@@ -131,6 +130,10 @@ NuaGlibOp* nua_glib_unpublish_direct (NuaGlib *self);
void nua_glib_redirect(NuaGlib *self, NuaGlibOp *op, const char *contact);
void nua_glib_auth_add(NuaGlib *self, NuaGlibOp *op, const char *method, const char *realm, const char *user, const char *password);
void nua_glib_auth_clear(NuaGlib *self, NuaGlibOp *op);
/*helper functions*/
gpointer nua_glib_op_get_data(NuaGlibOp *op);
......
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