[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another update of GNU TLS bindings
From: |
Simon Josefsson |
Subject: |
Re: Another update of GNU TLS bindings |
Date: |
Mon, 04 Feb 2002 19:13:36 +0100 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) |
"Stefan Monnier" <monnier+gnu/address@hidden> writes:
>> * GC fixes as suggested. However, Lisp_Process in process.h still
>> contain #ifdef's (and thus cause a binary API incompatibility)
>> because the type of the newly added variables is not known unless
>> TLS is enabled. Is this OK? I'm not sure how this could be solved.
>
> You could give a default bogus definition for those types like
>
> #ifndef HAVE_GNUTLS
> typedef void *GNUTLS_STATE;
> typedef void *GNUTLS_X509PKI_CLIENT_CREDENTIALS;
> typedef void *GNUTLS_ANON_CLIENT_CREDENTIALS;
> typedef void *GNUTLS_SRP_CLIENT_CREDENTIALS;
> #endif
I considered this, but then recalled that maybe the C standard doesn't
guarantee binary compatibility between different pointer types so it
wouldn't be guaranteed to be better. (Even if this isn't the case,
the GNUTLS types aren't guaranteed to be pointers at all, but we
already cheat during initialization, so...)
But I guess in practice it works, so I changed it, thanks.
- Re: Another update of GNU TLS bindings, (continued)
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/07
- Re: Another update of GNU TLS bindings, Simon Josefsson, 2002/02/07
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/08
- Re: Another update of GNU TLS bindings, Simon Josefsson, 2002/02/09
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/10
- Re: Another update of GNU TLS bindings, Florian Weimer, 2002/02/13
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/10
Re: Another update of GNU TLS bindings, Stefan Monnier, 2002/02/04
- Re: Another update of GNU TLS bindings,
Simon Josefsson <=
Re: Another update of GNU TLS bindings, William M. Perry, 2002/02/04
Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/07
- Re: Another update of GNU TLS bindings, William M. Perry, 2002/02/21
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/21
- Re: Another update of GNU TLS bindings, Simon Josefsson, 2002/02/22
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/23
- Re: Another update of GNU TLS bindings, Simon Josefsson, 2002/02/23
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/24
- Re: Another update of GNU TLS bindings, Simon Josefsson, 2002/02/24
- Re: Another update of GNU TLS bindings, Richard Stallman, 2002/02/25