libosip  5.3.0
osip_authorization.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2020 Aymeric MOIZARD amoizard@antisip.com
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 #ifndef _OSIP_AUTHORIZATION_H_
21 #define _OSIP_AUTHORIZATION_H_
22 
39 
45  char *auth_type;
46  char *username;
47  char *realm;
48  char *nonce;
49  char *uri;
50  char *response;
51  char *digest;
52  char *algorithm;
53  char *cnonce;
54  char *opaque;
55  char *message_qop;
56  char *nonce_count;
57  char *version;
58  char *targetname;
59  char *gssapi_data;
60  char *crand;
61  char *cnum;
62  char *auth_param;
63 };
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
79 int osip_authorization_parse(osip_authorization_t *header, const char *hvalue);
85 int osip_authorization_to_str(const osip_authorization_t *header, char **dest);
97 
108 void osip_authorization_set_auth_type(osip_authorization_t *header, char *value);
119 void osip_authorization_set_username(osip_authorization_t *header, char *value);
130 void osip_authorization_set_realm(osip_authorization_t *header, char *value);
141 void osip_authorization_set_nonce(osip_authorization_t *header, char *value);
152 void osip_authorization_set_uri(osip_authorization_t *header, char *value);
163 void osip_authorization_set_response(osip_authorization_t *header, char *value);
174 void osip_authorization_set_digest(osip_authorization_t *header, char *value);
185 void osip_authorization_set_algorithm(osip_authorization_t *header, char *value);
196 void osip_authorization_set_cnonce(osip_authorization_t *header, char *value);
207 void osip_authorization_set_opaque(osip_authorization_t *header, char *value);
240 void osip_authorization_set_version(osip_authorization_t *header, char *value);
273 void osip_authorization_set_crand(osip_authorization_t *header, char *value);
284 void osip_authorization_set_cnum(osip_authorization_t *header, char *value);
285 
286 #ifdef __cplusplus
287 }
288 #endif
289 
292 #endif
int osip_authorization_clone(const osip_authorization_t *header, osip_authorization_t **dest)
Definition: osip_authorization.c:758
void osip_authorization_free(osip_authorization_t *header)
Definition: osip_authorization.c:734
void osip_authorization_set_version(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:456
int osip_authorization_parse(osip_authorization_t *header, const char *hvalue)
Definition: osip_authorization.c:76
char * osip_authorization_get_response(osip_authorization_t *header)
Definition: osip_authorization.c:396
void osip_authorization_set_opaque(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:432
char * osip_authorization_get_nonce(osip_authorization_t *header)
Definition: osip_authorization.c:380
void osip_authorization_set_gssapi_data(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:472
int osip_authorization_to_str(const osip_authorization_t *header, char **dest)
Definition: osip_authorization.c:495
char * osip_authorization_get_digest(osip_authorization_t *header)
Definition: osip_authorization.c:404
char * osip_authorization_get_opaque(osip_authorization_t *header)
Definition: osip_authorization.c:428
void osip_authorization_set_targetname(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:464
char * osip_authorization_get_algorithm(osip_authorization_t *header)
Definition: osip_authorization.c:412
void osip_authorization_set_crand(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:480
int osip_authorization_init(osip_authorization_t **header)
Definition: osip_authorization.c:27
char * osip_authorization_get_crand(osip_authorization_t *header)
Definition: osip_authorization.c:476
void osip_authorization_set_algorithm(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:416
void osip_authorization_set_username(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:368
void osip_authorization_set_nonce(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:384
char * osip_authorization_get_targetname(osip_authorization_t *header)
Definition: osip_authorization.c:460
void osip_authorization_set_cnonce(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:424
char * osip_authorization_get_version(osip_authorization_t *header)
Definition: osip_authorization.c:452
char * osip_authorization_get_message_qop(osip_authorization_t *header)
Definition: osip_authorization.c:436
char * osip_authorization_get_username(osip_authorization_t *header)
Definition: osip_authorization.c:364
void osip_authorization_set_uri(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:392
char * osip_authorization_get_cnum(osip_authorization_t *header)
Definition: osip_authorization.c:484
void osip_authorization_set_nonce_count(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:448
char * osip_authorization_get_auth_type(const osip_authorization_t *header)
Definition: osip_authorization.c:356
void osip_authorization_set_digest(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:408
void osip_authorization_set_cnum(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:488
void osip_authorization_set_message_qop(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:440
char * osip_authorization_get_cnonce(osip_authorization_t *header)
Definition: osip_authorization.c:420
void osip_authorization_set_auth_type(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:360
char * osip_authorization_get_nonce_count(osip_authorization_t *header)
Definition: osip_authorization.c:444
char * osip_authorization_get_realm(osip_authorization_t *header)
Definition: osip_authorization.c:372
char * osip_authorization_get_uri(osip_authorization_t *header)
Definition: osip_authorization.c:388
char * osip_authorization_get_gssapi_data(osip_authorization_t *header)
Definition: osip_authorization.c:468
void osip_authorization_set_response(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:400
void osip_authorization_set_realm(osip_authorization_t *header, char *value)
Definition: osip_authorization.c:376
Definition: osip_authorization.h:44
char * nonce_count
Definition: osip_authorization.h:56
char * message_qop
Definition: osip_authorization.h:55
char * cnum
Definition: osip_authorization.h:61
char * auth_type
Definition: osip_authorization.h:45
char * gssapi_data
Definition: osip_authorization.h:59
char * version
Definition: osip_authorization.h:57
char * realm
Definition: osip_authorization.h:47
char * cnonce
Definition: osip_authorization.h:53
char * response
Definition: osip_authorization.h:50
char * crand
Definition: osip_authorization.h:60
char * auth_param
Definition: osip_authorization.h:62
char * opaque
Definition: osip_authorization.h:54
char * username
Definition: osip_authorization.h:46
char * uri
Definition: osip_authorization.h:49
char * targetname
Definition: osip_authorization.h:58
char * algorithm
Definition: osip_authorization.h:52
char * digest
Definition: osip_authorization.h:51
char * nonce
Definition: osip_authorization.h:48