diff options
Diffstat (limited to 'g10/cipher.c')
-rw-r--r-- | g10/cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/cipher.c b/g10/cipher.c index 162bbc35f..ef4c86502 100644 --- a/g10/cipher.c +++ b/g10/cipher.c @@ -54,8 +54,8 @@ write_header( cipher_filter_context_t *cfx, IOBUF a ) ed.len = cfx->datalen; ed.new_ctb = !ed.len && !opt.rfc1991; if( use_mdc ) { - ed.mdc_method = DIGEST_ALGO_SHA1; - cfx->mdc_hash = gcry_md_open( DIGEST_ALGO_SHA1, 0 ); + ed.mdc_method = GCRY_MD_SHA1; + cfx->mdc_hash = gcry_md_open( GCRY_MD_SHA1, 0 ); /*should we check the function works, or is it better to provide a flag which makes the function die itself ?? FIXME */ /*md_start_debug( cfx->mdc_hash, "mdccreat" );*/ |