"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/modules/seas/encode_uri.h" (1 Oct 2019, 1552 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "encode_uri.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) 2006-2007 VozTelecom Sistemas S.L
    3  *
    4  * This file is part of opensips, a free SIP server.
    5  *
    6  * opensips is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version
   10  *
   11  * opensips is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License
   17  * along with this program; if not, write to the Free Software
   18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
   19  */
   20 
   21 #include "../../str.h"
   22 #include "../../parser/msg_parser.h"
   23 
   24 #define SIP_OR_TEL_F    0x01
   25 #define SECURE_F    0x02
   26 #define USER_F      0x04
   27 #define PASSWORD_F  0x08
   28 #define HOST_F      0x10
   29 #define PORT_F      0x20
   30 #define PARAMETERS_F    0x40
   31 #define HEADERS_F   0x80
   32 
   33 #define TRANSPORT_F 0x01
   34 #define TTL_F       0x02
   35 #define USER_F      0x04
   36 #define METHOD_F    0x08
   37 #define MADDR_F     0x10
   38 #define LR_F        0x20
   39 
   40 #define MAX_XURI_LEN    23
   41 
   42 int encode_uri2(char *hdr,int hdrlen,str uri_str, struct sip_uri *uri_parsed,unsigned char *where);
   43 
   44 int print_encoded_uri(FILE *fp,unsigned char *payload,int paylen,char *hdr,int hdrlen,char *prefix);
   45 
   46 int print_uri_junit_tests(char *hdrstart,int hdrlen,unsigned char *payload,int paylen,int fd,char also_hdr,char *prefix);