gsasl  2.2.2
internal.h
Go to the documentation of this file.
1 /* internal.h --- Internal header with hidden library handle structures.
2  * Copyright (C) 2002-2025 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 along with GNU SASL Library; if not, see
18  * <https://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef INTERNAL_H
23 # define INTERNAL_H
24 
25 /* Get specifications. */
26 # include "gsasl.h"
27 
28 /* Get malloc, free, ... */
29 # include <stdlib.h>
30 
31 /* Get strlen, strcpy, ... */
32 # include <string.h>
33 
34 /* Main library handle. */
35 struct Gsasl
36 {
41  /* Callback. */
44 };
45 
46 /* Per-session library handle. */
48 {
50  int clientp;
52  void *mech_data;
54 
55  /* Properties. */
57  char *authid;
58  char *authzid;
59  char *password;
60  char *passcode;
61  char *pin;
62  char *suggestedpin;
63  char *service;
64  char *hostname;
66  char *realm;
68  char *qops;
69  char *qop;
70  char *scram_iter;
71  char *scram_salt;
81  /* If you add anything here, remember to change change
82  gsasl_finish() in xfinish.c and map() in property.c. */
83 };
84 
85 #endif /* INTERNAL_H */
int(* Gsasl_callback_function)(Gsasl *ctx, Gsasl_session *sctx, Gsasl_property prop)
Definition: gsasl.h:285
void * mech_data
Definition: internal.h:52
char * qops
Definition: internal.h:68
Gsasl_mechanism * mech
Definition: internal.h:51
char * hostname
Definition: internal.h:64
char * authid
Definition: internal.h:57
char * openid20_redirect_url
Definition: internal.h:79
char * service
Definition: internal.h:63
char * qop
Definition: internal.h:69
char * cb_tls_exporter
Definition: internal.h:76
char * scram_salted_password
Definition: internal.h:72
char * gssapi_display_name
Definition: internal.h:65
char * pin
Definition: internal.h:61
char * cb_tls_unique
Definition: internal.h:75
void * application_hook
Definition: internal.h:53
char * scram_storedkey
Definition: internal.h:74
char * saml20_redirect_url
Definition: internal.h:78
char * scram_salt
Definition: internal.h:71
char * scram_iter
Definition: internal.h:70
Gsasl * ctx
Definition: internal.h:49
char * passcode
Definition: internal.h:60
char * anonymous_token
Definition: internal.h:56
char * password
Definition: internal.h:59
char * openid20_outcome_data
Definition: internal.h:80
char * suggestedpin
Definition: internal.h:62
char * digest_md5_hashed_password
Definition: internal.h:67
char * authzid
Definition: internal.h:58
char * realm
Definition: internal.h:66
char * scram_serverkey
Definition: internal.h:73
char * saml20_idp_identifier
Definition: internal.h:77
Definition: internal.h:36
size_t n_client_mechs
Definition: internal.h:37
Gsasl_mechanism * server_mechs
Definition: internal.h:40
Gsasl_mechanism * client_mechs
Definition: internal.h:38
void * application_hook
Definition: internal.h:43
Gsasl_callback_function cb
Definition: internal.h:42
size_t n_server_mechs
Definition: internal.h:39