auth_common.c File Reference


Detailed Description

Functions common to both client and server authentication.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Original Created: Thu Feb 22 12:10:37 2001 ppessi

Created: Wed May 17 13:37:50 EEST 2006 ppessi

#include "config.h"
#include "sofia-sip/auth_common.h"
#include "sofia-sip/msg_header.h"
#include <string.h>
#include <stdarg.h>
#include <assert.h>

Include dependency graph for auth_common.c:


Functions

issize_t auth_get_params (su_home_t *home, char const *const params[],...)
 Parse authentication parameters.
int auth_strcmp (char const *quoted, char const *unquoted)
 Compare two strings, even if they are quoted.

Function Documentation

issize_t auth_get_params ( su_home_t *  home,
char const *const  params[],
  ... 
)

Parse authentication parameters.

The function auth_get_params() searches for the authentication parameters in params. The parameter list params is seached for each parameter given in in vararg section, and if it is found, its value is assigned to the given address.

Note:
The field name should contain the equal ("=") sign.
Returns:
The function auth_get_params() returns number of parameters found in params, or -1 upon an error.


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