auth_module_sip.c File Reference


Detailed Description

Authenticate SIP request.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>

Jari Urpalainen <Jari.Urpalainen@nokia-email.address.hidden>

Date:
Created: Thu Jan 15 17:23:21 2004 ppessi

#include "config.h"
#include <stddef.h>
#include <string.h>
#include <sofia-sip/sip.h>
#include <sofia-sip/sip_header.h>
#include <sofia-sip/sip_status.h>
#include <sofia-sip/nta.h>
#include <sofia-sip/auth_module.h>

Include dependency graph for auth_module_sip.c:

Functions

void auth_mod_check (auth_mod_t *am, auth_status_t *as, sip_t const *sip, auth_kind_t proxy)
 Authenticate an incoming SIP request.


Function Documentation

void auth_mod_check ( auth_mod_t am,
auth_status_t as,
sip_t const *  sip,
auth_kind_t  proxy 
)

Authenticate an incoming SIP request.

The function auth_mod_check() completes the as structure and calls the scheme-specific authentication method performing the actual authentication.

A successful authentication is indicated by setting as->as_status to 0. The authentication module sets as->as_match as the matching credential header.


Sofia-SIP 1.12.6work - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.