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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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: 10833 byte(s)
Diff to previous 581 , to selected 229
Set keyword expansion for Id on all files that already have $Id$ tags.

Revision 581 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 24 20:39:26 2003 UTC (9 years, 9 months ago) by weaselp
File length: 10883 byte(s)
Diff to previous 579 , to selected 229
Do away with the conditional use of RSA, always using it.  Without RSA we
aren't much good anyway.

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: 11156 byte(s)
Diff to previous 448 , to selected 229
Add a few #ifdef USE_PGP where they belong.  -- Hauke

Revision 448 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 27 20:43:41 2002 UTC (10 years, 4 months ago) by rabbi
File length: 11118 byte(s)
Diff to previous 376 , to selected 229
Added missing newline characters.

Revision 376 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 18 05:23:25 2002 UTC (10 years, 7 months ago) by rabbi
File length: 11114 byte(s)
Diff to previous 371 , to selected 229
Grammar fix.

Revision 371 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 16 20:59:09 2002 UTC (10 years, 7 months ago) by rabbi
File length: 11107 byte(s)
Diff to previous 368 , to selected 229
Made the protocol version a string constant.

Revision 368 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 16 20:39:42 2002 UTC (10 years, 7 months ago) by rabbi
File length: 11086 byte(s)
Diff to previous 332 , to selected 229
We prepend the protocol version string to the software version number in the type 2 capstring. This is necessary to allow existing Mixmaster versions to interoperate with future versions of Mixmaster.

Once we have confirmation that the use of the colon in the version string doesn't break any clients or other servers, I'll commit this to -stable and 2.0.4b as well, and modify the spec accordingly.

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: 11086 byte(s)
Diff to previous 298 , to selected 229
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 298 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 2 07:54:12 2002 UTC (10 years, 7 months ago) by weaselp
File length: 11190 byte(s)
Diff to previous 288 , to selected 229
Only return latest pgp keys to remailer-key requests

Revision 288 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 27 09:15:54 2002 UTC (10 years, 7 months ago) by weaselp
File length: 11074 byte(s)
Diff to previous 276 , to selected 229
Do not recreate the public keys from the private keyring if there still is a
public keyring in pgpkey.txt. This means we don't recreate the self signature
on binding keys amoung other things. It probably also means that one can
replace the keys in pgpkey.txt with keys signed by the adminkey and not have
them overriden the next time one does ./mix -[GK] (although I did not test
this).

We still need to fix keymgt to only return the latest keys - this should be
simple once I find out how to get expiration date for a specific key.

There's a small problem with the current keymanagement for PGP keys I guess. If
the latest key is not the last in the keyring we might screw up. Can you verify
this Disastry?

Revision 276 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 26 08:21:07 2002 UTC (10 years, 7 months ago) by weaselp
File length: 10963 byte(s)
Diff to previous 262 , to selected 229
We now handle CRLF end of lines in pubring.mix

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: 10800 byte(s)
Diff to previous 229
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 229 - (view) (download) (annotate) - [selected]
Modified Mon Sep 9 20:47:33 2002 UTC (10 years, 8 months ago) by uid23509
File length: 10717 byte(s)
Diff to previous 214
Use the key later in the file if they have the same expiry date (weasel aka uid23509)

Revision 214 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 5 01:21:54 2002 UTC (10 years, 8 months ago) by weaselp
File length: 10715 byte(s)
Diff to previous 195 , to selected 229
Mixmaster keys now have creation and expiration date.
It is not secured by any crypto voodoo, it's only
informational for clients to decide which keys to
use should they have more.
- on the client side we do not show remailers (and
  therefore not use them) if their key is expired.
- the remailer refuses to decrypt messages to keys
  that expired one month ago or earlier.
- the remailer automatically creates new mixmaster
  keys if the current one are about to expire or
  already are expired.
- the latest key from secring.mix is written to
  key.txt. It used to be the first one. Since
  creation of new mix key appends the key, this
  seemed sensible.

Revision 195 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 28 08:13:59 2002 UTC (10 years, 8 months ago) by weaselp
File length: 7780 byte(s)
Diff to previous 186 , to selected 229
Fix segfault with no keys

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: 7774 byte(s)
Diff to previous 123 , to selected 229
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 123 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 7 18:06:55 2002 UTC (10 years, 9 months ago) by weaselp
File length: 7755 byte(s)
Diff to previous 122 , to selected 229
Fix typo

Revision 122 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 7 17:27:01 2002 UTC (10 years, 9 months ago) by weaselp
File length: 7755 byte(s)
Diff to previous 120 , to selected 229
Make sure files are closed

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: 7717 byte(s)
Diff to previous 108 , to selected 229
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 108 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 25 14:11:37 2002 UTC (10 years, 10 months ago) by weaselp
File length: 7713 byte(s)
Diff to previous 102 , to selected 229
The -G option now forces creation of new keys even in client mode (Closes: #585176)

Revision 102 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 24 07:48:50 2002 UTC (10 years, 10 months ago) by rabbi
File length: 7697 byte(s)
Diff to previous 91 , to selected 229
We have changed the compile-time option PASSPHRASE to be named
COMPILEDPASS. We have changed the configuration file option PASS_PHRASE to
be named PASSPHRASE. We have added documentation for the new configuration
file option and made changes in the man page to reflect the name change.

This was done to avoid confusion due to the similarity in names of the
options.

Revision 91 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 10 01:58:49 2002 UTC (10 years, 10 months ago) by rabbi
File length: 7699 byte(s)
Diff to previous 81 , to selected 229
Added the ability to store the key passphrase in the mix.cfg file instead of
having it compiled into the binary. This offers a number of advantages over the
compiled-in method and still allows for encrypted remote storage of keys.

In order to take advantage of the new changes, the Install script will need to
be modified. As this is being replaced with a proper autoconf system, we're
defering that until later.

The changes we're committing replace PASSPHRASE with PASS_PHRASE, which is read
from the config. If the compiled-in passphrase, PASSPHRASE, is set, that is
used instead. (This is how Mixmaster will function if you use the Install
script.)

Revision 81 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 9 07:50:06 2002 UTC (10 years, 10 months ago) by rabbi
File length: 7697 byte(s)
Diff to previous 7 , to selected 229
Mixmaster now does not attempt to generate keys when run in client-only
mode (REMAIL set to "n") as there is no reason to do so. Requested by
Richard Christman for Quicksilver.

Revision 7 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 2 21:25:34 2001 UTC (11 years, 6 months ago) by rabbi
File length: 7669 byte(s)
Diff to previous 1 , to selected 229
Put "M" in key file (key.txt) if remailer is middleman. (disastry)

Remember the flags are:

C     accepts compressed messages.
M     will forward messages to another mix, when used as the final hop.
Nm    supports posting to Usenet throught a mail-to-news gateway.
Np    supports direct posting to Usenet.

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: 7638 byte(s)
Diff to selected 229
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