blob: 29c411433873360da3266c20e7d727e33e63f2b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* this is not to be included by gnutls_anon.c */
#include <gnutls_auth.h>
typedef struct {
gnutls_dh_params dh_params;
/* this callback is used to retrieve the DH or RSA
* parameters.
*/
gnutls_params_function * params_func;
} ANON_SERVER_CREDENTIALS_INT;
#define gnutls_anon_server_credentials ANON_SERVER_CREDENTIALS_INT*
#define gnutls_anon_client_credentials void*
typedef struct ANON_CLIENT_AUTH_INFO_INT {
int dh_prime_bits;
int dh_secret_bits;
int dh_peer_public_bits;
} *ANON_CLIENT_AUTH_INFO;
typedef ANON_CLIENT_AUTH_INFO ANON_SERVER_AUTH_INFO;
typedef struct ANON_CLIENT_AUTH_INFO_INT ANON_CLIENT_AUTH_INFO_INT;
typedef ANON_CLIENT_AUTH_INFO_INT ANON_SERVER_AUTH_INFO_INT;
gnutls_dh_params _gnutls_anon_get_dh_params(const gnutls_anon_server_credentials sc,
gnutls_session session);
|