Gnus development mailing list
 help / color / mirror / Atom feed
From: Bill Perry <wmperry@aventail.com>
Subject: Bug in nntp-open-ssl-stream
Date: Tue, 14 Dec 1999 12:53:14 -0800	[thread overview]
Message-ID: <71DE5436FE60D311B8F60050043207B544B05A@leo.in.aventail.com> (raw)

There is a bug in nntp-open-ssl-stream in v5.8.3:

(defun nntp-open-ssl-stream (buffer)
  (let* ((ssl-program-arguments '("-connect" (concat host ":" service)))
	 (proc (open-ssl-stream "nntpd" buffer nntp-address
nntp-port-number)))
    (save-excursion
      (set-buffer buffer)
      (nntp-wait-for-string "^\r*20[01]")
      (beginning-of-line)
      (delete-region (point-min) (point))
      proc)))

This should NOT modify ssl-program-arguments, otherwise the latest version
of ssl.el (that uses OpenSSL by default) will fail to work, because the
's_client' parameter has been removed.

Also, the waiting for the string terminator should be removed, and we
should document that if people get garbage at the top of the buffer (the
-quiet switch I added ages ago to ssleay has been broken in openssl), they
should create a shell script like:

#!/bin/sh
exec 2> /dev/null
exec openssl "$@"

I was thinking of distributing an 'emacs.openssl' script or something like
that as part of ssl.el and making it use it by default.  What would be
ideal is if someone outside the united states would volunteer to
re-implement my SSL patches to Emacs from ages ago.

-Bill P.


             reply	other threads:[~1999-12-14 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-14 20:53 Bill Perry [this message]
2000-04-21 17:53 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=71DE5436FE60D311B8F60050043207B544B05A@leo.in.aventail.com \
    --to=wmperry@aventail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).