aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/cipher.c')
-rw-r--r--g10/cipher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/cipher.c b/g10/cipher.c
index 48dde31cc..8fc0d3815 100644
--- a/g10/cipher.c
+++ b/g10/cipher.c
@@ -128,7 +128,7 @@ cipher_filter( void *opaque, int control,
if( rc )
log_fatal("encrypt failed: %s\n", gcry_strerror(rc) );
if( iobuf_write( a, buf, size ) )
- rc = G10ERR_WRITE_FILE;
+ rc = GPGERR_WRITE_FILE;
}
else if( control == IOBUFCTRL_FREE ) {
if( cfx->mdc_hash ) {
@@ -139,7 +139,7 @@ cipher_filter( void *opaque, int control,
if( rc )
log_fatal("encrypt failed: %s\n", gcry_strerror(rc) );
if( iobuf_write( a, hash, hashlen ) )
- rc = G10ERR_WRITE_FILE;
+ rc = GPGERR_WRITE_FILE;
gcry_md_close( cfx->mdc_hash ); cfx->mdc_hash = NULL;
}
gcry_cipher_close(cfx->cipher_hd);