diff options
author | Werner Koch <[email protected]> | 1998-04-07 18:16:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-04-07 18:16:10 +0000 |
commit | 86f261dbc50544d73e4b9ae71fcbc2c6df5b9612 (patch) | |
tree | d3ba75484a73e1fe891f7ff862ab1f3722cb126c /g10/parse-packet.c | |
parent | cast5 does now work (diff) | |
download | gnupg-86f261dbc50544d73e4b9ae71fcbc2c6df5b9612.tar.gz gnupg-86f261dbc50544d73e4b9ae71fcbc2c6df5b9612.zip |
cipher reorganisiert
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index fe2c63c5b..26c112244 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -61,19 +61,6 @@ static int parse_compressed( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ); static int parse_encrypted( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ); -#if 0 -static u16 -checksum( byte *p ) -{ - u16 n, a; - - n = *p++ << 8; - n |= *p++; - for(a=0; n; n-- ) - a += *p++; - return a; -} -#endif static unsigned short read_16(IOBUF inp) @@ -944,6 +931,9 @@ parse_certificate( IOBUF inp, int pkttype, unsigned long pktlen, cert->csum = read_16(inp); pktlen -= 2; if( list_mode ) { + printf("\telg x: "); + mpi_print(stdout, cert->d.elg.x, mpi_print_mode ); + putchar('\n'); printf("\t[secret value x is not shown]\n" "\tchecksum: %04hx\n", cert->csum); } |