gsasl  2.2.1
internal.h
Go to the documentation of this file.
1 /* internal.h --- Internal header with hidden library handle structures.
2  * Copyright (C) 2002-2024 Simon Josefsson
3  *
4  * This file is part of GNU SASL Library.
5  *
6  * GNU SASL Library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation; either version 2.1 of
9  * the License, or (at your option) any later version.
10  *
11  * GNU SASL Library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License License along with GNU SASL Library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef INTERNAL_H
24 # define INTERNAL_H
25 
26 /* Get specifications. */
27 # include "gsasl.h"
28 
29 /* Get malloc, free, ... */
30 # include <stdlib.h>
31 
32 /* Get strlen, strcpy, ... */
33 # include <string.h>
34 
35 /* Main library handle. */
36 struct Gsasl
37 {
42  /* Callback. */
45 };
46 
47 /* Per-session library handle. */
49 {
51  int clientp;
53  void *mech_data;
55 
56  /* Properties. */
58  char *authid;
59  char *authzid;
60  char *password;
61  char *passcode;
62  char *pin;
63  char *suggestedpin;
64  char *service;
65  char *hostname;
67  char *realm;
69  char *qops;
70  char *qop;
71  char *scram_iter;
72  char *scram_salt;
82  /* If you add anything here, remember to change change
83  gsasl_finish() in xfinish.c and map() in property.c. */
84 };
85 
86 #endif /* INTERNAL_H */
int(* Gsasl_callback_function)(Gsasl *ctx, Gsasl_session *sctx, Gsasl_property prop)
Definition: gsasl.h:286
void * mech_data
Definition: internal.h:53
char * qops
Definition: internal.h:69
Gsasl_mechanism * mech
Definition: internal.h:52
char * hostname
Definition: internal.h:65
char * authid
Definition: internal.h:58
char * openid20_redirect_url
Definition: internal.h:80
char * service
Definition: internal.h:64
char * qop
Definition: internal.h:70
char * cb_tls_exporter
Definition: internal.h:77
char * scram_salted_password
Definition: internal.h:73
char * gssapi_display_name
Definition: internal.h:66
char * pin
Definition: internal.h:62
char * cb_tls_unique
Definition: internal.h:76
void * application_hook
Definition: internal.h:54
char * scram_storedkey
Definition: internal.h:75
char * saml20_redirect_url
Definition: internal.h:79
char * scram_salt
Definition: internal.h:72
char * scram_iter
Definition: internal.h:71
Gsasl * ctx
Definition: internal.h:50
char * passcode
Definition: internal.h:61
char * anonymous_token
Definition: internal.h:57
char * password
Definition: internal.h:60
char * openid20_outcome_data
Definition: internal.h:81
char * suggestedpin
Definition: internal.h:63
char * digest_md5_hashed_password
Definition: internal.h:68
char * authzid
Definition: internal.h:59
char * realm
Definition: internal.h:67
char * scram_serverkey
Definition: internal.h:74
char * saml20_idp_identifier
Definition: internal.h:78
Definition: internal.h:37
size_t n_client_mechs
Definition: internal.h:38
Gsasl_mechanism * server_mechs
Definition: internal.h:41
Gsasl_mechanism * client_mechs
Definition: internal.h:39
void * application_hook
Definition: internal.h:44
Gsasl_callback_function cb
Definition: internal.h:43
size_t n_server_mechs
Definition: internal.h:40