mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Add features packet and fixes MIPS3.
This commit is contained in:
parent
93fe596356
commit
c287a8d05b
8
TODO
8
TODO
@ -1,5 +1,11 @@
|
||||
|
||||
* options.skel wird mit umaks von root installiert.
|
||||
* Look at FEATURES packet to decide wether to use MDC. We should
|
||||
rethink the whole preference implementation and drop that ugly hamehash
|
||||
stuff. Is it possible to that in getkey? We have to see whether we
|
||||
realy lookit up by user name or whethre there is a double lookup,
|
||||
first by userid and then later by keyid - which is bad.
|
||||
|
||||
* options.skel wird mit umask von root installiert.
|
||||
|
||||
* See how we can handle the symlinks in ./gcrypt
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
2000-10-11 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* packet.h: Add features sig subpacket definition.
|
||||
* parse-packet.c (dump_sig_subpkt,parse_one_sig_subpkt,
|
||||
can_handle_critical): Implemented it here.
|
||||
* build-packet.c (build_sig_subpkt): and here.
|
||||
* keygen.c (keygen_add_std_prefs): Generate a features packet.
|
||||
|
||||
2000-10-09 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* keygen.c (do_generate_keypair): Removed the keyblock locking.
|
||||
|
@ -702,6 +702,7 @@ build_sig_subpkt( PKT_signature *sig, sigsubpkttype_t type,
|
||||
case SIGSUBPKT_POLICY:
|
||||
case SIGSUBPKT_REVOC_REASON:
|
||||
case SIGSUBPKT_KEY_FLAGS:
|
||||
case SIGSUBPKT_FEATURES:
|
||||
hashed = 1; break;
|
||||
default: hashed = 0; break;
|
||||
}
|
||||
|
@ -148,6 +148,9 @@ keygen_add_std_prefs( PKT_signature *sig, void *opaque )
|
||||
buf[1] = 1;
|
||||
build_sig_subpkt( sig, SIGSUBPKT_PREF_COMPR, buf, 2 );
|
||||
|
||||
buf[0] = 1; /* supports MDC packets (15 + 16) */
|
||||
build_sig_subpkt( sig, SIGSUBPKT_FEATURES, buf, 1 );
|
||||
|
||||
buf[0] = 0x80; /* no modify - It is reasonable that a key holder
|
||||
* has the possibility to reject signatures from users
|
||||
* who are known to sign everything without any
|
||||
|
@ -275,6 +275,7 @@ typedef enum {
|
||||
SIGSUBPKT_KEY_FLAGS =27, /* key flags */
|
||||
SIGSUBPKT_SIGNERS_UID =28, /* signer's user id */
|
||||
SIGSUBPKT_REVOC_REASON =29, /* reason for revocation */
|
||||
SIGSUBPKT_FEATURES =30, /* feature flags */
|
||||
SIGSUBPKT_PRIV_ADD_SIG =101,/* signatur is also valid for this uid */
|
||||
|
||||
SIGSUBPKT_FLAG_CRITICAL=128
|
||||
|
@ -843,7 +843,12 @@ dump_sig_subpkt( int hashed, int type, int critical,
|
||||
printf("%02X", buffer[i] );
|
||||
}
|
||||
break;
|
||||
case SIGSUBPKT_PRIV_ADD_SIG:
|
||||
case SIGSUBPKT_FEATURES:
|
||||
fputs ( "features:", stdout );
|
||||
for( i=0; i < length; i++ )
|
||||
printf(" %02X", buffer[i] );
|
||||
break;
|
||||
case SIGSUBPKT_PRIV_ADD_SIG: /* gnupg private - to be removed */
|
||||
p = "signs additional user ID";
|
||||
break;
|
||||
default: p = "?"; break;
|
||||
@ -889,6 +894,7 @@ parse_one_sig_subpkt( const byte *buffer, size_t n, int type )
|
||||
case SIGSUBPKT_PREF_SYM:
|
||||
case SIGSUBPKT_PREF_HASH:
|
||||
case SIGSUBPKT_PREF_COMPR:
|
||||
case SIGSUBPKT_FEATURES:
|
||||
case SIGSUBPKT_POLICY:
|
||||
return 0;
|
||||
case SIGSUBPKT_PRIMARY_UID:
|
||||
@ -925,6 +931,7 @@ can_handle_critical( const byte *buffer, size_t n, int type )
|
||||
case SIGSUBPKT_PREF_SYM:
|
||||
case SIGSUBPKT_PREF_HASH:
|
||||
case SIGSUBPKT_PREF_COMPR:
|
||||
case SIGSUBPKT_FEATURES:
|
||||
case SIGSUBPKT_KEY_FLAGS:
|
||||
return 1;
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
2000-10-11 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* generic/mpi-asm-defs.h: New.
|
||||
* mips3/mpi-asm-defs.h: New.
|
||||
* config.links: Create a link to one of the above files.
|
||||
|
||||
Fri Jul 28 18:19:11 CEST 2000 Werner Koch <wk@openit.de>
|
||||
|
||||
* mpicoder.c (gcry_mpi_scan): Normalize the returned MPI.
|
||||
|
@ -278,3 +278,14 @@ for fn in $mpi_ln_modules ; do
|
||||
done
|
||||
done
|
||||
|
||||
# Same thing for the file which defines the limb size
|
||||
path="$path generic"
|
||||
for dir in $path ; do
|
||||
rm -f $srcdir/mpi/mpi-asm-defs.h
|
||||
if test -f $srcdir/mpi/$dir/mpi-asm-defs.h ; then
|
||||
mpi_ln_src="$mpi_ln_src mpi/$dir/mpi-asm-defs.h"
|
||||
mpi_ln_dst="$mpi_ln_dst mpi/mpi-asm-defs.h"
|
||||
break;
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -6,4 +6,5 @@ mpih-lshift.c
|
||||
mpih-rshift.c
|
||||
mpih-sub1.c
|
||||
udiv-w-sdiv.c
|
||||
mpi-asm-defs.h
|
||||
|
||||
|
9
mpi/generic/mpi-asm-defs.h
Normal file
9
mpi/generic/mpi-asm-defs.h
Normal file
@ -0,0 +1,9 @@
|
||||
/* This file defines some basic constants for the MPI machinery. We
|
||||
* need to define the types on a per-CPU basis, so it is done with
|
||||
* this file here. */
|
||||
#define BYTES_PER_MPI_LIMB (sizeof unsigned long)
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -6,4 +6,5 @@ mpih-mul2.S
|
||||
mpih-mul3.S
|
||||
mpih-lshift.S
|
||||
mpih-rshift.S
|
||||
mpi-asm-defs.h
|
||||
|
||||
|
10
mpi/mips3/mpi-asm-defs.h
Normal file
10
mpi/mips3/mpi-asm-defs.h
Normal file
@ -0,0 +1,10 @@
|
||||
/* This file defines some basic constants for the MPI machinery. We
|
||||
* need to define the types on a per-CPU basis, so it is done with
|
||||
* this file here. */
|
||||
#define BYTES_PER_MPI_LIMB 8
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user