🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66635

Re: SSL and inn -- patch included *ATTN Russ*

#66635
From: Russ Allbery
Date: Mon, 08 Sep 2003 02:49
38 lines
2676 bytes
cira <sam_george@comcast.net> writes:

> Here is a patch that does what I proposed.

> --- nnrpd/tls.c       2003-05-08 22:25:27.000000000 -0600
> +++ nnrpd/tls.c.new     2003-07-11 09:51:26.000000000 -0600
> @@ -415,13 +415,13 @@
 
>         /* check ownership and permissions of key file */
>         if (lstat(key_file, &buf) == -1) {
> -           syslog(L_ERROR, "unable to stat private key '%s'", cert_file);
> +           syslog(L_ERROR, "unable to stat private key '%s'", key_file);
>             return (0);
>         }
>         if (!S_ISREG(buf.st_mode) || (buf.st_mode & 0077) != 0 ||
>             buf.st_uid != getuid()) {
> -           syslog(L_ERROR, "bad ownership or permissions on private key '%s'", 
> -                 cert_file);
> +           syslog(L_ERROR, "bad ownership or permissions on private key '%s'.  The private key must be mode 700 or less, and owned by user news.", 
> +                 key_file);
>             return (0);
>         }

Thanks, this patch has been applied.

> Oh, and I'd like to say thanks to Russ & Vincent for working
> on inn so much, you guys are the best!

> ps. I've never submitted a patch for anything before...
> did i do it right?

Yup, looked good to me.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87vfs4f0zl.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com> <bedifp$s6u$2@puck.litech.org> <jmGdndEiKvFGx5aiXTWJjA@comcast.com> <IXWdnSwkH_NRQpOiXTWJkw@comcast.com>

Show Full Headers
Complete Article Headers
Message-ID: <87vfs4f0zl.fsf@windlord.stanford.edu>
Subject: Re: SSL and inn -- patch included *ATTN Russ*
Date: Sun, 07 Sep 2003 19:49:34 -0700
From: Russ Allbery <rra@stanford.edu>
References: <Wpidnf0j9pAgnJeiXTWJgQ@comcast.com> <bedifp$s6u$2@puck.litech.org> <jmGdndEiKvFGx5aiXTWJjA@comcast.com> <IXWdnSwkH_NRQpOiXTWJkw@comcast.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!text1.nnrp.aus1!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!feed2.news.rcn.net!rcn!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 38
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1062989374 27464 171.64.19.147 (8 Sep 2003 02:49:34
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux)
Cancel-Lock: sha1:bRSoN1J/YHBpWwqTke+f2BUBQW0=