aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-01-07 20:47:46 +0000
committerWerner Koch <[email protected]>1998-01-07 20:47:46 +0000
commit762d3d7197f622296ea5360a73c46c88dcd26308 (patch)
treecfd34485dc436ef861b4f625d20388f3776c232e /g10/encode.c
parentpatch release 0.1.1 (diff)
downloadgnupg-762d3d7197f622296ea5360a73c46c88dcd26308.tar.gz
gnupg-762d3d7197f622296ea5360a73c46c88dcd26308.zip
patchlevel 2
Diffstat (limited to '')
-rw-r--r--g10/encode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/encode.c b/g10/encode.c
index b0b148dd1..688cbfc08 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -88,7 +88,7 @@ encode_simple( const char *filename, int mode )
cfx.dek = NULL;
if( mode ) {
cfx.dek = m_alloc_secure( sizeof *cfx.dek );
- cfx.dek->algo = DEFAULT_CIPHER_ALGO;
+ cfx.dek->algo = opt.def_cipher_algo;
if( (rc = make_dek_from_passphrase( cfx.dek , 2 )) ) {
m_free(cfx.dek);
iobuf_close(inp);
@@ -199,7 +199,7 @@ encode_crypt( const char *filename, STRLIST remusr )
/* create a session key */
cfx.dek = m_alloc_secure( sizeof *cfx.dek );
- cfx.dek->algo = DEFAULT_CIPHER_ALGO;
+ cfx.dek->algo = opt.def_cipher_algo;
make_session_key( cfx.dek );
if( DBG_CIPHER )
log_hexdump("DEK is: ", cfx.dek->key, cfx.dek->keylen );
@@ -269,7 +269,7 @@ encrypt_filter( void *opaque, int control,
else if( control == IOBUFCTRL_FLUSH ) { /* encrypt */
if( !efx->header_okay ) {
efx->cfx.dek = m_alloc_secure( sizeof *efx->cfx.dek );
- efx->cfx.dek->algo = DEFAULT_CIPHER_ALGO;
+ efx->cfx.dek->algo = opt.def_cipher_algo;
make_session_key( efx->cfx.dek );
if( DBG_CIPHER )
log_hexdump("DEK is: ",