sofia-sip/token64.h File Reference


Detailed Description

Token64 encoding.

This module contains token64 encoding functions. Token64 encodes arbitrary octet strings as http header tokens containing only characters in range [-+A-Za-z0-9].

#include <sofia-sip/su_config.h>

Include dependency graph for token64.h:

Go to the source code of this file.

Defines

#define TOKEN64_SIZE(n)
 Calculate size of n bytes encoded in token-64.

Functions

SOFIA_BEGIN_DECLS SOFIAPUBFUN
int 
token64_e (char b[], int bsiz, void const *data, int dlen)
 Encode data as an http token.


Function Documentation

SOFIA_BEGIN_DECLS SOFIAPUBFUN int token64_e ( char  b[],
int  bsiz,
void const *  data,
int  dlen 
)

Encode data as an http token.

Note:
A token is case-independent, so this is really not a good idea. Use msg_random_token() instead.


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