[Help-gnutls] Still replacing OpenSSL function with GnuTLS

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat Jun 13 09:44:08 CEST 2009


Carolin Latze wrote:

Hello,
 In general you shouldn't try to map gnutls functions to openssl or vice
versa. They both work different and there is no such 1-1 mapping. Just
check the gnutls manual to see what kind of server/client you are
implementing and try to apply it to your program.

> it's me again. Replacing OpenSSL with GnuTLS in an application is a lot
> more complicated than I thought :) I have more questions regarding
> certain functions:
> 
> 1) Is there a method to set a message callback similar to
> SSL_set_msg_callback. I didn't find any but it seems that I need it :-/

No. But normally you shouldn't need it. What is the reason you want to
use it?

> 2) Is it the right way to replace SSL_set_accept_state with
> gnutls_init(&session,GNUTLS_SERVER)? From my understandings, it makes
> sense... what do you think?

Really depends on the context. We don't have a function similar to that.

> 3) In OpenSSL there is a method to check whether a handshake has
> finished: SSL_is_init_finished. Is there an equivalent in GnuTLS? I
> didn't find one so far but I have the impression that it cannot be too
> complicated to write one (so perhaps there is already one I didn't find?)

No we don't have such a function. when gnutls_handshake() returns the
handshake is over.

regards,
Nikos





More information about the Gnutls-help mailing list