diff options
author | Werner Koch <wk@gnupg.org> | 1998-06-15 17:41:04 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-06-15 17:41:04 +0200 |
commit | 6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2 (patch) | |
tree | 7c4a888893a91b59753b3d89e59832f8c24ba039 /g10/parse-packet.c | |
parent | gnupg extension are now working (diff) | |
download | gnupg2-6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2.tar.xz gnupg2-6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2.zip |
extensions are now working and fixed a lot of bugs
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 0cd4238ad..9e469b644 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -64,6 +64,7 @@ static int parse_compressed( IOBUF inp, int pkttype, unsigned long pktlen, static int parse_encrypted( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ); + static unsigned short read_16(IOBUF inp) { @@ -1006,9 +1007,6 @@ 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->skey[3], mpi_print_mode ); - putchar('\n'); printf("\t[secret value x is not shown]\n" "\tchecksum: %04hx\n", cert->csum); } @@ -1174,8 +1172,7 @@ parse_certificate( IOBUF inp, int pkttype, unsigned long pktlen, printf(" %02x", temp[i] ); putchar('\n'); } - if( cert->protect.algo == CIPHER_ALGO_BLOWFISH160 ) - memcpy(cert->protect.iv, temp, 8 ); + memcpy(cert->protect.iv, temp, 8 ); /* old version, we don't have a S2K, so we fake one */ cert->protect.s2k.mode = 0; cert->protect.s2k.hash_algo = DIGEST_ALGO_MD5; |