2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SIP_BRANCHID 3SIP "Jan 25, 2007"
8 sip_branchid \- generate a RFC 3261 complaint branch ID
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsip\fR [ \fIlibrary\fR ... ]
15 \fBchar *\fR\fIsip_branchid\fR(\fBsip_msg_t\fR \fIsip_msg\fR);
21 The \fBsip_branchid()\fR function can be used to generate a value for the
22 branch parameter for a \fBVIA\fR header. The returned string is prefixed with
23 \fBz9hG4bK\fR to conform to RFC 3261. If \fIsip_msg\fR is null or \fIsip_msg\fR
24 does not have a \fBVIA\fR header, a random value is generated. Otherwise, the
25 value is generated using the \fBMD5\fR hash of the \fBVIA\fR, \fBFROM\fR,
26 \fBCALL-ID\fR, \fBCSEQ\fR headers and the \fBURI\fR from the request line. The
27 caller is responsible for freeing the returned string.
31 The \fBsip_branchid()\fR function returns a string on success and \fBNULL\fR on
35 The value of \fBerrno\fR is not changed by these calls in the event of an
40 See \fBattributes\fR(5) for descriptions of the following attributes:
48 ATTRIBUTE TYPE ATTRIBUTE VALUE
50 Interface Stability Committed