Re: is the "https" patch necessary

clemensF <[email protected]> Tue, 5 Mar 2002 21:59:17 +0100
Newsgroups gmane.comp.djb.publicfile
Organization uhm, no
Message-ID <[email protected]>
> [email protected]:

> #!/bin/sh
> exec 2>&1
> exec envuidgid root softlimit -o20 -d50000 tcpserver -vDRHl0 -b50 -c100 0 443 stunnel -f -l /usr/local/publicfile/bin/httpd  -- httpds /publics/file
> 
> This works for me with an _unpatched_ httpd as well.  

but then people have to write something like "http://...:443", right? 
because publicfile can't "subtract" the scheme part from the URL unless it
knows it.

> +    else {
> +      if (case_startb(url.s,url.len,"https://")) {
> +       if (!stralloc_copyb(&host,url.s + 8,url.len - 8)) _exit(21);

clemens fischer