Subject: Re: Q: PGP support in Pine

From: [email-masked] (Ken Bass)
Date: 24 Mar 1996 01:37:40 GMT

On 23 Mar 1996 03:44:21 -0500, Dean Pentcheff <[email-masked]>
wrote:
 : [email-masked] (Pawel Krawczyk) writes:
 : >Will ever Pine have support for PGP? I mean internal support, not 
 : >patches like mkpgp.
 : 
 : The most recently released version (3.92) has an excellent set of hooks
 : for PGP support I have adapted the following series of scripts to do
 : the job.  They were posted here a couple of days ago (the original
 : author's name and address is in the scripts).  They make it very, very
 : painless to use PGP:
 : 
 : pgp -fast

  Hi, I added the above line to my setup but get the following:

Pretty Good Privacy(tm) 2.6.2 - Public-key encryption for the masses.
(c) 1990-1994 Philip Zimmermann, Phil's Pretty Good Software. 11 Oct 94
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Distributed by the Massachusetts Institute of Technology.
Export of this software may be restricted by the U.S. government.
Current time: 1996/03/24 01:26 GMT

You specified no user ID to select your secret key,
so the default user ID and key will be the most recently
added key on your secret keyring.

You need a pass phrase to unlock your RSA secret key. 
Key for user ID "Ken Bass <[email-masked]>"

Enter pass phrase: cannot open tty, using stdin

Unable to get terminal characteristics: ioctl: Invalid argument

I am using linux, pine 3.92, and pgp 2.6.2.

  ---Ken

---

From: [email-masked] (Pawel Krawczyk)
Date: Fri, 22 Mar 1996 15:59:24 GMT

Will ever Pine have support for PGP? I mean internal support, not 
patches like mkpgp.

--
Pawel Krawczyk, FidoNet: 2:486/18.4 email: [email-masked] 
Location: Cracow, Poland, PGP key available on finger

---

From: [email-masked] (Andreas Klemm)
Date: 24 Mar 1996 11:15:34 GMT

In article <[email-masked]>,
	[email-masked] (Dean Pentcheff) writes:
>[email-masked] (Pawel Krawczyk) writes:
>The most recently released version (3.92) has an excellent set of hooks
>for PGP support I have adapted the following series of scripts to do
>the job.  They were posted here a couple of days ago (the original
>author's name and address is in the scripts).  They make it very, very
>painless to use PGP:
>
>
>---------- pgpdecode ---------
>#!/bin/sh
># 21.03.96 Roland Rosenfeld <[email-masked]> 
>trap "rm -f /home/dean/.tmp/pgpdecode.???.$$; exit" 0 1 2 15
>(pgp -f > /home/dean/.tmp/pgpdecode.txt.$$) 2>&1 | tee /home/dean/.tmp/pgpdecode.pgp.$$ 1>&2
>sed -e 's/^/| /' /home/dean/.tmp/pgpdecode.pgp.$$
>echo " "
>cat /home/dean/.tmp/pgpdecode.txt.$$

I'd suggest the following solution for pgpdecode. Everything
will be written to /tmp, so this script is suitable for everyone
on a multiuser system and to secure the temp-files in /tmp, 
the umask will be set, so that the permissions are secure
(rw-------).

#! /bin/sh
# 21.03.96 Roland Rosenfeld <[email-masked]> 
#
# Sun Mar 24 12:01:21 MET 1996 Andreas Klemm <[email-masked]>
# The tmp files in the original version were world readable for
# the short time of unpacking, setting suitable umask prevents this
#
umask 077
trap "rm -f /tmp/pgpdecode.???.$$; exit" 0 1 2 15
(pgp -f > /tmp/pgpdecode.txt.$$) 2>&1 | tee /tmp/pgpdecode.pgp.$$ 1>&2
sed -e 's/^/| /' /tmp/pgpdecode.pgp.$$
echo " "
cat /tmp/pgpdecode.txt.$$

-- 
[email-masked]         /\/\___      Wiechers & Partner Datentechnik GmbH
   Andreas Klemm          ___/\/\/         $$  Support Unix - [email-masked]  $$
pgp p-key  http://www-swiss.ai.mit.edu/~bal/pks-toplev.html  >>> powered by <<<
ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz  >>>    FreeBSD <<<
"Ich bleibe bei der Aussage und trotze den Flames. :-)"    Ulli Horlacher 02/96

---

From: [email-masked] (Pawel Krawczyk)
Date: Mon, 25 Mar 1996 09:32:38 GMT

Andreas Klemm ([email-masked]) wrote:

: I'd suggest the following solution for pgpdecode. Everything
: will be written to /tmp, so this script is suitable for everyone
: on a multiuser system and to secure the temp-files in /tmp, 
: the umask will be set, so that the permissions are secure
: (rw-------).
: umask 077
: trap "rm -f /tmp/pgpdecode.???.$$; exit" 0 1 2 15
: (pgp -f > /tmp/pgpdecode.txt.$$) 2>&1 | tee /tmp/pgpdecode.pgp.$$ 1>&2
: sed -e 's/^/| /' /tmp/pgpdecode.pgp.$$
: echo " "
: cat /tmp/pgpdecode.txt.$$

Using $HOME/tmp would be probably safer, and more logical. This is the
directory usually defined as TEMP in .pgprc.

---

From: [email-masked] (Dean Pentcheff)
Date: 23 Mar 1996 03:44:21 -0500

---------- pgpdecode ---------
#!/bin/sh

---------- pgpencrypt ---------
#!/bin/sh
pgp -feast $*

---------- pgpsign ---------
#!/bin/sh
pgp -fast

---------- .pinerc ---------
# List of features; see Pine's Setup/options menu for the current set.
# e.g. feature-list= select-without-confirm, signature-at-bottom
# Default condition for all of the features is no-.
feature-list=compose-send-offers-first-filter

# This variable takes a list of programs that message text is piped into
# after MIME decoding, prior to display.
display-filters="-----BEGIN PGP" /home/dean/bin/pgpdecode

# This defines a program that message text is piped into before MIME
# encoding, prior to sending
sending-filters=/home/dean/bin/pgpsign,
	/home/dean/bin/pgpencrypt _RECIPIENTS_

-- 
N. Dean Pentcheff   <[email-masked]>   WWW: http://tbone.biol.sc.edu/~dean/
Biological Sciences, Univ. of South Carolina, Columbia SC 29208 (803-777-3936)
PGP ID=768/22A1A015 Keyprint=2D 53 87 53 72 4A F2 83  A0 BF CB C0 D1 0E 76 C0 
Get PGP keys and information with the command: "finger [email-masked]"