aboutsummaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-04-04 20:16:55 +0000
committerWerner Koch <[email protected]>1998-04-04 20:16:55 +0000
commit53a578711fe65b97c14539048dc9015dc5026da8 (patch)
tree2d358795a9d14fd7dcfe9f7a82e32363038ea8c5 /g10/build-packet.c
parentstarted with keyserver (diff)
downloadgnupg-53a578711fe65b97c14539048dc9015dc5026da8.tar.gz
gnupg-53a578711fe65b97c14539048dc9015dc5026da8.zip
cast5 does now work
Diffstat (limited to '')
-rw-r--r--g10/build-packet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 85278af1c..4d0a7d69f 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -289,7 +289,8 @@ do_secret_cert( IOBUF out, int ctb, PKT_secret_cert *skc )
mpi_write(a, skc->d.rsa.rsa_n );
mpi_write(a, skc->d.rsa.rsa_e );
if( skc->is_protected ) {
- assert( skc->protect.algo == CIPHER_ALGO_BLOWFISH );
+ assert( skc->protect.algo == CIPHER_ALGO_BLOWFISH
+ || skc->protect.algo == CIPHER_ALGO_CAST );
iobuf_put(a, skc->protect.algo );
iobuf_write(a, skc->protect.iv, 8 );
}