/[pkg-mixmaster]/trunk/Mix/Src/main.c
ViewVC logotype

Log of /trunk/Mix/Src/main.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 988 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 7 16:52:23 2008 UTC (5 years, 2 months ago) by colin
File length: 22641 byte(s)
Diff to previous 937 , to selected 199
Move --config option up the help output so it's obvious that it's for both client and remailer use.

Revision 937 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 24 15:52:20 2006 UTC (6 years, 10 months ago) by colin
File length: 22641 byte(s)
Diff to previous 934 , to selected 199
Fix ncurses support fails when useful options
are supplied bug. (Closes #623890).

Revision 934 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 24 13:40:39 2006 UTC (6 years, 10 months ago) by rabbi
File length: 22394 byte(s)
Diff to previous 925 , to selected 199
Updated copyright dates.

Revision 925 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 15 15:47:25 2006 UTC (7 years, 3 months ago) by colin
File length: 22394 byte(s)
Diff to previous 924 , to selected 199
Get stats to temporary files and only copy over if all ok.

Revision 924 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 9 23:21:25 2005 UTC (7 years, 7 months ago) by weasel
File length: 22394 byte(s)
Diff to previous 921 , to selected 199
A user reported the problem that mixmaster - when started from an init script -
asked for a passphrase and therefore locked his entire boot process untilĀ·
somebody hit return.  I don't see how this could happen, but add a
new --no-ask-passphrase that makes it never ask for the remailer's passphrase
on startup, even if we don't have it compiled in, don't have it in the config
file, don't have it in the environment and we are, on a tty.

Revision 921 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 16 12:06:10 2005 UTC (7 years, 9 months ago) by rabbi
File length: 22090 byte(s)
Diff to previous 899 , to selected 199
Documentation cleanup.

Revision 899 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 4 10:52:18 2004 UTC (8 years, 11 months ago) by colin
File length: 22092 byte(s)
Diff to previous 852 , to selected 199
Move update stats logic into a function

Revision 852 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 13 13:59:28 2004 UTC (9 years ago) by weasel
File length: 22420 byte(s)
Diff to previous 771 , to selected 199
Merge stats stuff from branch into trunk

Revision 771 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 26 12:43:32 2004 UTC (9 years ago) by rabbi
File length: 20353 byte(s)
Diff to previous 770 , to selected 199
--version and -V now print the version to STDOUT.
--about now prints the copyright info.

Revision 770 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 26 12:16:20 2004 UTC (9 years ago) by rabbi
File length: 20127 byte(s)
Diff to previous 710 , to selected 199
Appropriately distributed Copyright credit, added --version option.

This should go in the man page and mpgp as well.

Revision 710 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 21 00:47:21 2004 UTC (9 years, 3 months ago) by rabbi
File length: 19402 byte(s)
Diff to previous 700 , to selected 199
Updated copyright dates, doc issues, misc fixes.

Revision 700 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 17 01:33:38 2004 UTC (9 years, 4 months ago) by weasel
File length: 19381 byte(s)
Diff to previous 647 , to selected 199
Try to detect timeskews and refuse to run as a remailer if there is a problem
suspected.  Only applies to mixmaster in remailer mode.

Revision 647 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 25 23:34:13 2003 UTC (9 years, 6 months ago) by weasel
File length: 19312 byte(s)
Diff to previous 579 , to selected 199
Set keyword expansion for Id on all files that already have $Id$ tags.

Revision 579 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 20 20:33:00 2003 UTC (9 years, 9 months ago) by weaselp
File length: 19360 byte(s)
Diff to previous 576 , to selected 199
Add a few #ifdef USE_PGP where they belong.  -- Hauke

Revision 576 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 17 19:16:43 2003 UTC (9 years, 9 months ago) by weaselp
File length: 19317 byte(s)
Diff to previous 575 , to selected 199
Fix latest commit

Revision 575 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 17 19:15:29 2003 UTC (9 years, 9 months ago) by weaselp
File length: 19323 byte(s)
Diff to previous 574 , to selected 199
nym support ifdef'ed out

Revision 574 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 17 19:04:34 2003 UTC (9 years, 9 months ago) by weaselp
File length: 19233 byte(s)
Diff to previous 512 , to selected 199
nym support ifdef'ed out

Revision 512 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 8 18:07:08 2003 UTC (10 years ago) by weaselp
File length: 19106 byte(s)
Diff to previous 506 , to selected 199
Experimental feature:  --redirect -l <chain>.  If you have a mixmaster message
with a chain starting with hop1 (you cannot know any more because it already is
encrypted) then mix --redirect -l=foo,bar < file redirect the message so the
chain is actually foo,bar,hop1,... and places it in your pool.  If the total
number of hops (which cannot be known) exceeds 20 the message is damanged and
will fail at the 20th node.

Revision 506 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 3 11:20:42 2003 UTC (10 years ago) by weaselp
File length: 18870 byte(s)
Diff to previous 498 , to selected 199
Improve parse_yearmonthday() and add startup assert() to test it

Revision 498 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 3 01:56:08 2003 UTC (10 years ago) by weaselp
File length: 18749 byte(s)
Diff to previous 484 , to selected 199
In client mode (REMAIL n) the pool is flushed every time mixmaster is run
unless CLIENTAUTOFLUSH is set to n.  (closes: #676794: Rate implementation
doubled)

Revision 484 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 28 16:12:49 2003 UTC (10 years, 1 month ago) by weaselp
File length: 18614 byte(s)
Diff to previous 358 , to selected 199
Remove the mix_regular call in client mode - this needs to be done a little bit differently

Revision 358 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 10 23:54:39 2002 UTC (10 years, 7 months ago) by weaselp
File length: 18677 byte(s)
Diff to previous 352 , to selected 199
We chould also chdir() if the daemon doesn't detach

Revision 352 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 10 13:05:10 2002 UTC (10 years, 7 months ago) by weaselp
File length: 18675 byte(s)
Diff to previous 344 , to selected 199
Write pidfile before reopening stdio to /dev/null

Revision 344 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 10 10:06:05 2002 UTC (10 years, 7 months ago) by weaselp
File length: 18646 byte(s)
Diff to previous 332 , to selected 199
Move pidfile writing out of optional detaching

Revision 332 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 9 20:53:32 2002 UTC (10 years, 7 months ago) by weaselp
File length: 18641 byte(s)
Diff to previous 314 , to selected 199
Whitespace cleanup:
for i in *.c; do cp -a $i $i.orig; sed -e 's/^        /<TAB>/' $i.orig > $i; rm $i.orig; done
for i in *.c *.h; do cp -a $i $i.orig; sed -e 's/[ <TAB>]*$//' $i.orig > $i; rm $i.orig; done

Revision 314 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 5 18:53:25 2002 UTC (10 years, 7 months ago) by ulfm
File length: 18661 byte(s)
Diff to previous 265 , to selected 199
Bug fix: check the pool for waiting messages in the non-remailer configuration.
In particular, messages are supposed to be sent immediately if the user sets
POOLSIZE and SENDPOOLTIME to 0.

Revision 265 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 20 19:01:34 2002 UTC (10 years, 8 months ago) by disastry
File length: 18602 byte(s)
Diff to previous 262 , to selected 199
add commandline option --config=file
this allows to use alternate configuration file
(for example on encrypted partition)

also make pool directory configurable

Revision 262 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 18 23:26:17 2002 UTC (10 years, 8 months ago) by rabbi
File length: 18340 byte(s)
Diff to previous 254 , to selected 199
Added closing comments for all #ifdef statements. All #endif's, as well as
nested braces, should be commented to reference their start.

We need to provide comments before every function as well.

Revision 254 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 12 17:26:00 2002 UTC (10 years, 8 months ago) by disastry
File length: 18022 byte(s)
Diff to previous 199
check expiration and revocation of pgp keys, userids, subkeys

do not encrypt with expired or revoked keys, subkeys
do not sign with expired or revoked keys
do not decrypt with expired keys, subkeys after graceperiod

when encrypting use preferences from latest and/or primary userid

create new pgp keys if current are to expire in overlapperiod

Revision 199 - (view) (download) (annotate) - [selected]
Modified Wed Aug 28 16:29:28 2002 UTC (10 years, 8 months ago) by weaselp
File length: 18009 byte(s)
Diff to previous 197
new MSVC patch by Disastry

Revision 197 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 28 09:35:25 2002 UTC (10 years, 8 months ago) by weaselp
File length: 17911 byte(s)
Diff to previous 196 , to selected 199
Write a pid file

Revision 196 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 28 08:34:26 2002 UTC (10 years, 8 months ago) by weaselp
File length: 17795 byte(s)
Diff to previous 194 , to selected 199
Only ask for passphrase if none is set _and_ we do have a tty

Revision 194 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 27 06:46:13 2002 UTC (10 years, 8 months ago) by weaselp
File length: 17835 byte(s)
Diff to previous 189 , to selected 199
Disastry's passphrase patch take II: also asks for passphrase when doing mix
-K/G/R/M

Revision 189 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 26 19:38:51 2002 UTC (10 years, 8 months ago) by weaselp
File length: 17276 byte(s)
Diff to previous 186 , to selected 199
Entered passphrase was overwritten with SIGHUP. It's now stored to a
second variable.

Revision 186 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 26 19:24:30 2002 UTC (10 years, 8 months ago) by rabbi
File length: 17179 byte(s)
Diff to previous 177 , to selected 199
Mixmaster now prompts for user input for the secret key passphrase when
mix is started in daemon mode (./mix -D). Mixmaster will try to find
either PGP/RSA, PGP/ELG or Mix key that can be decrypted with the provided
passphrase. If it finds one, it assumes the passphrase is good.

(We may have a problem if the user manages to get his secret key
passphrases out of sync. Suggestions on handling this case?)

FYI: the passphrase in mix.cfg takes precedence over the passphrase
compiled into the binary. If neither of these are present, only then is
the user prompted for a keyboard-input passphrase.

We still need to make mix retain the user-provided passphrase across
SIGHUP signals.

Revision 177 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 25 07:47:23 2002 UTC (10 years, 8 months ago) by weaselp
File length: 16570 byte(s)
Diff to previous 168 , to selected 199
Mixmaster in daemon mode will now reload its configuration upon receiving a
SIGHUP.

It was necessary to set the defaults in their own function rather than when
defining the variables.

It will also catch SIGTERM and SIGINT and exit in a sane way, first finishing
the current action.

New option --no-detach will prevent mixmaster in daemon mode from detaching
from the terminal.

Revision 168 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 22 05:18:26 2002 UTC (10 years, 8 months ago) by weaselp
File length: 16423 byte(s)
Diff to previous 147 , to selected 199
List known mixmasters in remailer-conf replies. How do I get a list of
the pgp keyring so I can also list type I remailers? Do we need to list
type I remailers?

Revision 147 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 20 19:39:24 2002 UTC (10 years, 9 months ago) by rabbi
File length: 16284 byte(s)
Diff to previous 124 , to selected 199
Added a new feature, --store-mail (-I), which will deliver an encrypted
mix packet to the message pool without attempting being decrypted. It is
stored as a i* packet in the pool, to be later decrypted by Mixmaster
running in daemon mode, or with "mix -M" started (for example) by cron.

This avoids passphrase prompting problems.

Revision 124 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 7 21:45:59 2002 UTC (10 years, 9 months ago) by weaselp
File length: 16029 byte(s)
Diff to previous 120 , to selected 199
Detach as suggested by the Unix Programming FAQ

Revision 120 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 3 17:08:02 2002 UTC (10 years, 9 months ago) by weaselp
File length: 15523 byte(s)
Diff to previous 101 , to selected 199
Submitted By: Sami Farin (safari):
Included correct header files.

Src/main.c had incorrect param to buf_appendf.

Added buf_write_sync() (used by Src/rem.c:mix_pool()).
Should a mixmaster machine crash, pool file can contain
any random data after reboot/journal recovery (at least
when using reiserfs).

Maybe not relevant, but strrchr should be used instead of
strchr when looking for domain part.

Src/pgpdata.c:pgp_elgdecrypt() passes uninitialized values
to BN_free if BN_CTX_new fails.

Src/pgpdata.c:pgp_elgencrypt() passes uninitialized value
to BN_free if the third mpi_get(key, i) fails.

Src/random.c does not check return value of read().

Src/rndseed.c does not check return value of read().

Revision 101 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 24 07:00:16 2002 UTC (10 years, 9 months ago) by rabbi
File length: 15498 byte(s)
Diff to previous 69 , to selected 199
The -T option (display type2.list) previously would not work if the file
type2.list was not present. -T will now display type2.list info retrieved
from pubring.mix if type2.list is not present.

Revision 69 - (view) (download) (annotate) - [select for diffs]
Modified Sat Mar 9 03:05:36 2002 UTC (11 years, 2 months ago) by weaselp
File length: 15495 byte(s)
Diff to previous 65 , to selected 199
Using break instead of continue in the -g option. Also add a missing break in the -a (attachment) command line parsing code.

Revision 65 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 29 02:47:12 2002 UTC (11 years, 3 months ago) by rabbi
File length: 15493 byte(s)
Diff to previous 37 , to selected 199
Fixes argument handling bug pointed out by Antonomasia.

Other appearances of
         "buf_appendf...argv[++i]"
(but not "buf_appendf...argv[i]")
may  have similar problems.

Revision 37 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 12 18:50:09 2001 UTC (11 years, 5 months ago) by rabbi
File length: 15469 byte(s)
Diff to previous 32 , to selected 199
Win32 service optimization, commandline args tweaked, help updated.

Revision 32 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 11 21:45:53 2001 UTC (11 years, 5 months ago) by rabbi
File length: 15415 byte(s)
Diff to previous 30 , to selected 199
Renamed the service install and remove commands.
Updated the man page.

Revision 30 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 11 20:59:26 2001 UTC (11 years, 5 months ago) by rabbi
File length: 15421 byte(s)
Diff to previous 11 , to selected 199
Changes for WIN32 Service support. service.c is totally re-written,
service.h is removed. main.c is now cleaner.

TODO: better solution to the Win32/Unix directory seperation issue. Sring
operations on every path is a lot of extra work. Why not fopen() ?

Revision 11 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 6 23:41:58 2001 UTC (11 years, 6 months ago) by rabbi
File length: 16814 byte(s)
Diff to previous 1 , to selected 199
First round of changes adding support for Mixmaster as a service under
Windows NT.

Revision 1 - (view) (download) (annotate) - [select for diffs]
Added Wed Oct 31 08:19:51 2001 UTC (11 years, 6 months ago) by rabbi
File length: 15169 byte(s)
Diff to selected 199
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.5