Discussion:
TLS implementation
Stephen J. Turnbull
2015-05-05 03:46:30 UTC
Permalink
Jerry,

I have a number of questions about how the TLS implementation
interacts with the build system and to some extent the Lisp engine. I
know you're very busy, so if you don't have time to do any review or
answer my question, I'd appreciate a note saying so and I'll just
proceed with caution.

(0) I think we ought to default this feature on. I fuzzily remember
that I wanted some testing before doing that, but most of the
build issues should be worked out by now, and the "fill can
relocate strings" issue has been fixed with Aidan's implementation
of clear_passwd.

(1) I guess the reason for always building and linking tls.c is to
define 'tls-error. Is that correct?

(2) If I configure and build --without-tls, I get a warning because
Qread_passwd is an unused variable. I don't see any reason not to
DEFSYMBOL it unconditionally, it's just one slot in the obarray
and this is a pretty important function.

(3) I'm very tempted to move the definitions of 'tls-error to
process.c (and maybe make it a sub-error of 'network-error) and
'read-password to general-slots.h. Any reason not to do that?

(4) Once (3) is done, I believe that tls.c doesn't need to be compiled
or linked if configured --without-tls. Any reason not to do the
usual Makefile dance for conditionally compiled modules that you
know of?

Regards,

Steve
Jerry James
2015-05-06 03:34:45 UTC
Permalink
Post by Stephen J. Turnbull
Jerry,
I have a number of questions about how the TLS implementation
interacts with the build system and to some extent the Lisp engine. I
know you're very busy, so if you don't have time to do any review or
answer my question, I'd appreciate a note saying so and I'll just
proceed with caution.
A note for those who haven't heard: I just changed jobs last week.
While I am enjoying the new job, my commute time went up quite a bit,
which means my free time went down commensurately. I will still
contribute as I am able to do so, but may be less responsive than
previously.
Post by Stephen J. Turnbull
(0) I think we ought to default this feature on. I fuzzily remember
that I wanted some testing before doing that, but most of the
build issues should be worked out by now, and the "fill can
relocate strings" issue has been fixed with Aidan's implementation
of clear_passwd.
I think that's great. Mats and I talked about doing some configure
magic to prevent using pre-1.0.0 versions of openssl. There was a
patch floated on xemacs-beta if I remember correctly. That should
probably go in, as the openssl support won't work with 0.9* versions.
Post by Stephen J. Turnbull
(1) I guess the reason for always building and linking tls.c is to
define 'tls-error. Is that correct?
Uhhhhhh.... I don't remember this terribly well, but glancing at the
code, that seems likely.
Post by Stephen J. Turnbull
(2) If I configure and build --without-tls, I get a warning because
Qread_passwd is an unused variable. I don't see any reason not to
DEFSYMBOL it unconditionally, it's just one slot in the obarray
and this is a pretty important function.
Okay, that's fine with me.
Post by Stephen J. Turnbull
(3) I'm very tempted to move the definitions of 'tls-error to
process.c (and maybe make it a sub-error of 'network-error) and
'read-password to general-slots.h. Any reason not to do that?
No, that sounds like a good plan.
Post by Stephen J. Turnbull
(4) Once (3) is done, I believe that tls.c doesn't need to be compiled
or linked if configured --without-tls. Any reason not to do the
usual Makefile dance for conditionally compiled modules that you
know of?
No, I can't think of any. I like this idea. Feel free to ask me to
review any proposed changes. I may take a day or two do to the
review, but I'll make an effort to get to it. Regards,
--
Jerry James
http://www.jamezone.org/
Stephen J. Turnbull
2015-05-07 01:27:44 UTC
Permalink
Post by Jerry James
While I am enjoying the new job,
Great! Whatever comes first for you, do it first. :-)
Post by Jerry James
Post by Stephen J. Turnbull
(0) I think we ought to default this feature on.
I think that's great. Mats and I talked about doing some configure
magic to prevent using pre-1.0.0 versions of openssl. There was a
patch floated on xemacs-beta if I remember correctly. That should
probably go in, as the openssl support won't work with 0.9*
versions.
Noted.
Post by Jerry James
Post by Stephen J. Turnbull
(4) Once (3) is done, I believe that tls.c doesn't need to be compiled
or linked if configured --without-tls. Any reason not to do the
usual Makefile dance for conditionally compiled modules that you
know of?
No, I can't think of any. I like this idea. Feel free to ask me to
review any proposed changes.
OK, thanks. I won't get to it until this weekend in any case (and
unless you've moved a very long way, my weekend starts most of a day
earlier than yours ;-) but of course the "Great! ..." comment still
applies. If it takes "a couple days" to a week, you'll still be faster
than me! No hurry. :-)

Continue reading on narkive:
Loading...