[sr-dev] git:master: modules/auth_ephemeral: many improvements
Peter Dunkley
peter.dunkley at crocodile-rcs.com
Thu Sep 19 19:19:24 CEST 2013
Module: sip-router
Branch: master
Commit: e45df83ddb68a90e91cc99fcdbb364f7b09ea541
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e45df83ddb68a90e91cc99fcdbb364f7b09ea541
Author: Peter Dunkley <peter.dunkley at crocodilertc.net>
Committer: Peter Dunkley <peter.dunkley at crocodilertc.net>
Date: Thu Sep 19 18:15:21 2013 +0100
modules/auth_ephemeral: many improvements
- Some general tidying up of the code
- Support for both draft-uberti-rtcweb-turn-rest format usernames
and the original format
- New non-digest authenticate function that can be used to authenticate
WebSocket handshakes (based on URL and Cookie: contents) - this means no SIP
level authentication is required for WebSocket traffic
- Check functions to verify that the From:/To: URIs match the user-string part
of ephemeral usernames
- Check function so you can re-check the timestamp (for example, when caching the
ephemeral username during WebSocket handshakes you may want to check it is still
valid when a SIP request arrives)
---
modules/auth_ephemeral/README | 308 +++++++++++++++-----
modules/auth_ephemeral/autheph_mod.c | 76 ++++-
modules/auth_ephemeral/autheph_mod.h | 6 +
modules/auth_ephemeral/authorize.c | 283 +++++++++++++-----
modules/auth_ephemeral/authorize.h | 12 +-
modules/auth_ephemeral/checks.c | 282 ++++++++++++++++++
modules/auth_ephemeral/checks.h | 40 +++
.../auth_ephemeral/doc/auth_ephemeral_admin.xml | 276 +++++++++++++++---
8 files changed, 1078 insertions(+), 205 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=e45df83ddb68a90e91cc99fcdbb364f7b09ea541
More information about the sr-dev
mailing list