[Top][All Lists]

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

[Gnu-arch-users] mini patch for pfs-dav.c and libneon GNU TLS work

From: Aleix Conchillo Flaque
Subject: [Gnu-arch-users] mini patch for pfs-dav.c and libneon GNU TLS work
Date: Sat, 25 Sep 2004 18:35:20 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Hi all,

I'm attaching a mini patch (for pfs-dav.c) that sets dav_port
correctly depending on dav_scheme. It was set to 80 by default and
only changed if a port was given in the URI, which is not the case in
https (well, it could be...).

I'm also working on a libneon patch to support GNU TLS. Right now I'm
testing it with GNU arch, and I'd like to have a first working version
at the end of next week.

I hope this is the right place to send this patch, if not, my apologises.

Best regards,


--- orig/libarch/pfs-dav.c
+++ mod/libarch/pfs-dav.c
@@ -199,10 +199,13 @@
   portstr = str_chr_index (answer->dav_hostname, ':');
-   if (portstr)
+  if (portstr)
      *(portstr++) = 0;
-  answer->dav_port = 80;
+  if (!str_cmp(answer->dav_scheme, "http"))
+      answer->dav_port = 80;
+  else
+      answer->dav_port = 443;
   if (portstr && (0 > cvt_decimal_to_uint (&ign, &answer->dav_port, portstr, 
str_length (portstr))))
       safe_printfmt (2, "illegal port number in uri -- %s\n", uri);

Attachment: pgpg6qy5TS9kb.pgp
Description: PGP signature

reply via email to

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