starttls 0.7

Simon Josefsson jas at extundo.com
Wed Jan 23 06:50:51 JST 2002


Daiki Ueno <ueno at unixuser.org> writes:

> Hello,
>
> I've just made the new tarball available:
>
> http://deisui.bug.org/~ueno/misc/starttls/starttls-0.7.tar.gz
>
> This release doesn't have its own fake getaddrinfo(3) implementation
> and therefore I hope that it compiles more easily than before.

Thank you.  I needed the patch below on Solaris 2.6 (I'm not sure it
is a good patch).

Perhaps a more long-term solution would be native TLS support in Emacs
(http://josefsson.org/securemacs/).  I am using it for STARTTLS and it
has been working fine for a few weeks.  William, if you have time, it
would be nice to have more people test it:

http://mail.gnu.org/pipermail/emacs-devel/2001-December/003861.html

I'm attaching the trivial modifications to gnutls.el to support
STARTTLS as well.

Index: starttls.c
===================================================================
RCS file: /cvs/root/starttls/starttls.c,v
retrieving revision 1.12
diff -w -u -r1.12 starttls.c
--- starttls.c  2002/01/22 12:40:30     1.12
+++ starttls.c  2002/01/22 21:48:36
@@ -134,12 +134,12 @@
   int server, false = 0, family, socktype;
   struct sockaddr *addr;
   struct sockaddr_in sin;
-  socklen_t addrlen;
+  size_t addrlen;
 #ifdef HAVE_ADDRINFO
   struct addrinfo *in, hints;
 #else
   struct hostent *host;
-  struct servent serv;
+  struct servent *serv;
 #endif
 
   proto = getprotobyname ("tcp");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls.el
Type: application/emacs-lisp
Size: 5240 bytes
Desc: not available
URL: <http://lists.chise.org/pipermail/emacs-mime-en/attachments/20020122/21db3a54/attachment.bin>


More information about the Emacs-mime-en mailing list