Thread View: news.software.readers
8 messages
8 total messages
Started by Phil Humpherys
Mon, 20 Apr 1998 00:00
slrn/PGP
Author: Phil Humpherys
Date: Mon, 20 Apr 1998 00:00
Date: Mon, 20 Apr 1998 00:00
12 lines
927 bytes
927 bytes
Any word on when PGP functionality will be placed in slrn? I think the mutt folks have done an awesome job with this, couldn't the slrn developers do something similar? -- Phil Humpherys <humphery@www.spire.com> Unix Systems Administrator PGP: 1024 0xBD9F700D 1F 2F 32 53 98 BF 03 9E C3 77 1B 4D 6E C1 84 C4 WWW: http://www.astron.net/~humphery
Re: slrn/PGP
Author: Russ Allbery
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
27 lines
1713 bytes
1713 bytes
brian moore <bem@news.cmc.net> writes: > greg <greg@meow.org> wrote: >> It's interesting that INN seems to be freely available everywhere, >> although it's got such hooks for verifying control messages. There >> doesn't seem to be any restriction on tale's signing script either. >> Are the ISC being naughty, or is there some trick to the coding or >> distribution that exempts them? > It's a nasty fine line and they have better lawyers? Note that all that INN ships with is a Perl script that runs an incoming message through a program (that happens to be called pgp), expects a single line of output, and checks that single line of output against the expected line of output. None of that has anything at all to do with crypto. INN ships with a generic hook for an "external authentication program" that could use any method ranging from crypto to querying an external server to advanced telepathy to verify messages. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: slrn/PGP
Author: Ren� Scholz
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
18 lines
1341 bytes
1341 bytes
Phil Humpherys <humphery@www.spire.com> wrote: >Any word on when PGP functionality will be placed in slrn? I >think the mutt folks have done an awesome job with this, couldn't >the slrn developers do something similar? I could only point You to http://www2.informatik.uni-jena.de/~mrz/pub/slrn/ ren� -- "Wer die Freiheit aufgibt, um Sicherheit zu gewinnen, der wird am Ende beides verlieren" (Benjamin Franklin) ==> Voland @IRC <== 2048/0xF11D6871 2A8D 3F92 4EB8 E55C 3605 D571 38C8 E2B8 mrz@informatik.uni-jena.de http://www2.informatik.uni-jena.de/~mrz/
Re: slrn/PGP
Author: greg
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
14 lines
1140 bytes
1140 bytes
davis@space.mit.edu (John E. Davis) writes: > Apparantly if I put a pgp specific hook in the code then I would not > be able to make it available to those outside the US. It's interesting that INN seems to be freely available everywhere, although it's got such hooks for verifying control messages. There doesn't seem to be any restriction on tale's signing script either. Are the ISC being naughty, or is there some trick to the coding or distribution that exempts them?
Re: slrn/PGP
Author: John E. Davis
Date: Wed, 22 Apr 1998 00:00
Date: Wed, 22 Apr 1998 00:00
126 lines
4409 bytes
4409 bytes
On 20 Apr 1998 02:01:25 +0500, Phil Humpherys <humphery@www.spire.com>
wrote:
>Any word on when PGP functionality will be placed in slrn? I
>think the mutt folks have done an awesome job with this, couldn't
>the slrn developers do something similar?
Apparantly if I put a pgp specific hook in the code then I would not
be able to make it available to those outside the US. However, here
is a patch to slrn that enables one to define a hook that can do
anything to the file immediately before posting. This differs from
the current filter hook because after the filter hook is called, slrn
MIME processes the file performs character set mapping, etc..
This patch allows one to define a hook called `post_file_hook'. Here
is an example of the hook (composed of two functions). The core
function separates the body from the header of the article and then
runs a command on the body section and then puts the header and body
back together. The `post_file_hook' function simply runs ispell on
the body but I am sure that you can think of other uses.
Below you will find the two macro functions followed by a patch to
slrn/src/post.c. The patch is with respect to 0.9.5.
define post_file_hook_command (cmd, file)
{
variable header_file, body_file;
variable fp, header_fp, body_fp;
variable line;
if (1 != get_yes_no_cancel (sprintf ("Execute %s on message", cmd)))
return;
fp = fopen (file, "r");
if (fp == NULL)
return;
header_file = file + "-header";
body_file = file + "-body";
header_fp = fopen (header_file, "w");
body_fp = fopen (body_file, "w");
if ((header_fp == NULL) or (body_fp == NULL))
return;
while (-1 != fgets (&line, fp))
{
if (line == "\n")
break;
() = fputs (line, header_fp);
}
() = fclose (header_fp);
% Now do body
while (-1 != fgets (&line, fp))
{
() = fputs (line, body_fp);
}
() = fclose (body_fp);
() = system (sprintf ("%s %s", cmd, body_file));
fp = fopen (file, "w");
body_fp = fopen (body_file, "r");
header_fp = fopen (header_file, "r");
while (-1 != fgets (&line, header_fp))
() = fputs (line, fp);
() = fputs ("\n", fp);
while (-1 != fgets (&line, body_fp))
() = fputs (line, fp);
% No need to close files unless we want to check for errors. When
% file pointer variables go out of scope, slang will close the file.
}
define post_file_hook (file)
{
post_file_hook_command ("ispell -x", file);
% post_file_hook_command ("other-commands...", file);
}
---------------------------------------
--- /nfs/wiwaxia/h1/davis/src/release/slrn/src/post.c Mon Apr 20 16:22:09 1998
+++ post.c Tue Apr 21 11:33:43 1998
@@ -792,11 +792,30 @@
if (Slrn_Use_Mime)
slrn_mime_scan_file (fp);
#endif
+#if SLRN_HAS_SLANG
+ if (NULL != SLang_get_function ("post_file_hook"))
+ {
+ fclose (fp);
+ (void) SLang_run_hooks ("post_file_hook", 1, file);
+ if (SLang_Error)
+ {
+ slrn_error ("post_file_hook returned error. %s not posted.", file);
+ return -1;
+ }
+
+ if ((fp = fopen (file, "r")) == NULL)
+ {
+ slrn_error ("File not found: %s--- message not posted.", file);
+ return -1;
+ }
+ }
+#endif
/* slrn_set_suspension (1); */
status = Slrn_Post_Obj->po_start ();
if (status != CONT_POST)
{
+ /* FIXME!! Put the file in a known place, e.g., dead.letter */
if (status != -1)
slrn_error ("Posting not allowed.");
return -1;
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis Cambridge, MA 02139-4307
Re: slrn/PGP
Author: brian moore
Date: Thu, 23 Apr 1998 00:00
Date: Thu, 23 Apr 1998 00:00
37 lines
2173 bytes
2173 bytes
On 22 Apr 1998 20:41:03 -0400, greg <greg@meow.org> wrote: > davis@space.mit.edu (John E. Davis) writes: > > > Apparantly if I put a pgp specific hook in the code then I would not > > be able to make it available to those outside the US. > > It's interesting that INN seems to be freely available everywhere, > although it's got such hooks for verifying control messages. There > doesn't seem to be any restriction on tale's signing script either. > > Are the ISC being naughty, or is there some trick to the coding or > distribution that exempts them? It's a nasty fine line and they have better lawyers? (Mutt and Apache, for example, leave out the hooks in their official US releases for this reason as well. Though the hooks are available via ftp on non-US servers.) If it's a 'Cryptographic API', it's a no-no, but what exactly a CAPI is depends on who you ask. Apache's module interface is multipurpose enough to not really be one. But it seems that to actually install SSL, you have to patch other files, at least in 1.2. Mutt's PGP interface (in the international version, anyway) is clearly one, in that it remembers keys and is very much designed to talk to PGP. The folks at RSA are playing with the terms to some extent to test just what the NSA means.... but then, they have money. :) -- Brian Moore Kill A Spammer For Jesus Sysadmin, C/Perl Hacker, Usenet Vandal
Re: slrn/PGP
Author: greg
Date: Thu, 23 Apr 1998 00:00
Date: Thu, 23 Apr 1998 00:00
24 lines
1848 bytes
1848 bytes
Russ Allbery <rra@stanford.edu> writes: > Note that all that INN ships with is a Perl script that runs an incoming > message through a program (that happens to be called pgp), expects a > single line of output, and checks that single line of output against the > expected line of output. It also reconstitutes the message and signature from the headers and adds the PGP-specific separators before feeding the thing into pgp. And, of course, the signing script does the reverse. > None of that has anything at all to do with crypto. INN ships with a > generic hook for an "external authentication program" that could use any > method ranging from crypto to querying an external server to advanced > telepathy to verify messages. Okay, but the script is a part of the package, and it's doing about as much as a pgp-aware newsreader would require (that is, as long as we're talking about checking and creating signed cleartext). If that kind of functionality makes a newsreader subject to export restrictions, I almost have to wonder if /bin/sh is restricted =)
Re: slrn/PGP
Author: Russ Allbery
Date: Thu, 23 Apr 1998 00:00
Date: Thu, 23 Apr 1998 00:00
27 lines
1762 bytes
1762 bytes
greg <greg@meow.org> writes: > It also reconstitutes the message and signature from the headers and > adds the PGP-specific separators before feeding the thing into pgp. > And, of course, the signing script does the reverse. Good point. > Okay, but the script is a part of the package, and it's doing about as > much as a pgp-aware newsreader would require (that is, as long as we're > talking about checking and creating signed cleartext). If that kind of > functionality makes a newsreader subject to export restrictions, I > almost have to wonder if /bin/sh is restricted =) Heh. :) Well, my PGP::Sign module is sitting on CPAN for all the world, both US and non-US, to download, and it includes more than enough functionality to do signature generation and checking using 2.6.2 PGP. (I won't support PGP 5.0 unless/until it's free in the United States.) No one's broken in my front door yet. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads