diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-19 13:13:31 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-12-19 13:13:31 +0000 |
commit | 3bc76b218eae9adc7bb235c7aabeb4b0fb0fecac (patch) | |
tree | f4f2eabbe7c101cd6e0c341dc89f3da41496e137 /lib/auth_anon.c | |
parent | bd64ccd6ec5cb79441319f978c091b31c2e03350 (diff) | |
download | gnutls-3bc76b218eae9adc7bb235c7aabeb4b0fb0fecac.tar.gz |
corrected bugs in AUTH_INFO allocation
Diffstat (limited to 'lib/auth_anon.c')
-rw-r--r-- | lib/auth_anon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/auth_anon.c b/lib/auth_anon.c index ba88ca3c78..ff5e21740d 100644 --- a/lib/auth_anon.c +++ b/lib/auth_anon.c @@ -72,7 +72,7 @@ int gen_anon_server_kx( GNUTLS_STATE state, opaque** data) { uint8 *data_p; uint8 *data_g; uint8 *data_X; - const ANON_SERVER_CREDENTIALS cred; + const GNUTLS_ANON_SERVER_CREDENTIALS cred; cred = _gnutls_get_cred( state->gnutls_key, GNUTLS_ANON, NULL); if (cred==NULL) { @@ -88,7 +88,7 @@ int gen_anon_server_kx( GNUTLS_STATE state, opaque** data) { } if ( state->gnutls_key->auth_info == NULL) { - state->gnutls_key->auth_info = gnutls_malloc(sizeof(ANON_SERVER_AUTH_INFO)); + state->gnutls_key->auth_info = gnutls_malloc(sizeof(ANON_SERVER_AUTH_INFO_INT)); if (state->gnutls_key->auth_info==NULL) return GNUTLS_E_MEMORY_ERROR; state->gnutls_key->auth_info_type = GNUTLS_ANON; state->gnutls_key->auth_info_size = sizeof(ANON_SERVER_AUTH_INFO_INT); @@ -241,7 +241,7 @@ int proc_anon_server_kx( GNUTLS_STATE state, opaque* data, int data_size) { /* set auth_info */ if (state->gnutls_key->auth_info==NULL) - state->gnutls_key->auth_info = gnutls_malloc(sizeof(ANON_CLIENT_AUTH_INFO)); + state->gnutls_key->auth_info = gnutls_malloc(sizeof(ANON_CLIENT_AUTH_INFO_INT)); else if (gnutls_auth_get_type( state) != state->gnutls_key->auth_info_type) { gnutls_assert(); @@ -265,7 +265,7 @@ int proc_anon_client_kx( GNUTLS_STATE state, opaque* data, int data_size) { size_t _n_Y; MPI g, p; int bits, ret; - const ANON_SERVER_CREDENTIALS cred; + const GNUTLS_ANON_SERVER_CREDENTIALS cred; cred = _gnutls_get_cred( state->gnutls_key, GNUTLS_ANON, NULL); if (cred==NULL) { |