libosip  5.3.0
osip_www_authenticate.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_WWW_AUTHENTICATE_H_
21 #define _OSIP_WWW_AUTHENTICATE_H_
22 
39 
45  char *auth_type;
46  char *realm;
47  char *domain;
48  char *nonce;
49  char *opaque;
50  char *stale;
51  char *algorithm;
52  char *qop_options;
53  char *version;
54  char *targetname;
55  char *gssapi_data;
56  char *auth_param;
57 };
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
73 int osip_www_authenticate_parse(osip_www_authenticate_t *header, const char *hvalue);
79 int osip_www_authenticate_to_str(const osip_www_authenticate_t *header, char **dest);
91 
162 #define osip_www_authenticate_set_stale_true(header) osip_www_authenticate_set_stale(header, osip_strdup("true"))
167 #define osip_www_authenticate_set_stale_false(header) osip_www_authenticate_set_stale(header, osip_strdup("false"))
183 #define osip_www_authenticate_set_algorithm_MD5(header) osip_www_authenticate_set_algorithm(header, osip_strdup("MD5"))
228 
229 #ifdef __cplusplus
230 }
231 #endif
232 
235 #endif
char * osip_www_authenticate_get_opaque(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:496
void osip_www_authenticate_set_version(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:524
char * osip_www_authenticate_get_version(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:520
char * osip_www_authenticate_get_stale(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:488
void osip_www_authenticate_set_stale(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:492
void osip_www_authenticate_set_opaque(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:500
char * osip_www_authenticate_get_realm(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:464
char * osip_www_authenticate_get_targetname(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:528
void osip_www_authenticate_set_targetname(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:532
int osip_www_authenticate_clone(const osip_www_authenticate_t *header, osip_www_authenticate_t **dest)
Definition: osip_www_authenticate.c:681
char * osip_www_authenticate_get_nonce(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:480
void osip_www_authenticate_set_nonce(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:484
int osip_www_authenticate_parse(osip_www_authenticate_t *header, const char *hvalue)
Definition: osip_www_authenticate.c:253
void osip_www_authenticate_set_algorithm(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:508
void osip_www_authenticate_set_realm(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:468
void osip_www_authenticate_set_auth_type(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:460
char * osip_www_authenticate_get_auth_type(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:456
int osip_www_authenticate_init(osip_www_authenticate_t **header)
Definition: osip_www_authenticate.c:27
void osip_www_authenticate_set_qop_options(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:516
char * osip_www_authenticate_get_gssapi_data(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:536
char * osip_www_authenticate_get_algorithm(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:504
void osip_www_authenticate_set_gssapi_data(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:540
void osip_www_authenticate_free(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:662
char * osip_www_authenticate_get_domain(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:472
int osip_www_authenticate_to_str(const osip_www_authenticate_t *header, char **dest)
Definition: osip_www_authenticate.c:547
void osip_www_authenticate_set_domain(osip_www_authenticate_t *header, char *value)
Definition: osip_www_authenticate.c:476
char * osip_www_authenticate_get_qop_options(osip_www_authenticate_t *header)
Definition: osip_www_authenticate.c:512
Definition: osip_www_authenticate.h:44
char * realm
Definition: osip_www_authenticate.h:46
char * domain
Definition: osip_www_authenticate.h:47
char * targetname
Definition: osip_www_authenticate.h:54
char * nonce
Definition: osip_www_authenticate.h:48
char * auth_param
Definition: osip_www_authenticate.h:56
char * auth_type
Definition: osip_www_authenticate.h:45
char * stale
Definition: osip_www_authenticate.h:50
char * qop_options
Definition: osip_www_authenticate.h:52
char * version
Definition: osip_www_authenticate.h:53
char * opaque
Definition: osip_www_authenticate.h:49
char * gssapi_data
Definition: osip_www_authenticate.h:55
char * algorithm
Definition: osip_www_authenticate.h:51