gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interface


From: Werner Koch
Subject: Re: interface
Date: Fri, 25 Feb 2000 16:08:25 +0100
User-agent: Mutt/1.1.1i

On Fri, 25 Feb 2000, Nikos Mavroyanopoulos wrote:

> GNUTLS_STATE *state=malloc(SIZEOF_GNUTLS_STATE);

There is not need, that SIZEOF_GNUTLS_STATE is know for users of
gnutls.  Better initialize the state with an init function:

> gnutls_init(state, GNUTLS_SERVER);
> /* or in case of a client: gnutls_init(state, GNUTLS_CLIENT); */

int gnutls_init( *ret_state, GNUTLS_SERVER );

> free(state);

gnutls_deinit(state)

> gnutl_send/receive() will process messages of all types (alert,
> change_cipher_spec, handshake, application_data). So gnutls_handshake
> will be able to use these functions internally.

That looks easy.  However, I don't know much about TLS. 


   Werner


reply via email to

[Prev in Thread] Current Thread [Next in Thread]