diff options
author | Werner Koch <wk@gnupg.org> | 2015-01-22 12:06:11 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-01-22 12:06:11 +0100 |
commit | 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993 (patch) | |
tree | 0dd1a333374407a96a3258b4cb46a5e634e683ae /g10/encrypt.c | |
parent | gpg: Remove an unused variable. (diff) | |
download | gnupg2-11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993.tar.xz gnupg2-11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993.zip |
gpg: Replace remaining old error code macros by GPG_ERR_.
* g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
gpg_strerror.
(G10ERR_): Remove all macros and change all occurrences by their
GPG_ERR_ counterparts.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/encrypt.c')
-rw-r--r-- | g10/encrypt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c index b6925445f..8d2b325f9 100644 --- a/g10/encrypt.c +++ b/g10/encrypt.c @@ -287,7 +287,7 @@ encrypt_simple (const char *filename, int mode, int use_seskey) pkt.pkttype = PKT_SYMKEY_ENC; pkt.pkt.symkey_enc = enc; if ((rc = build_packet( out, &pkt ))) - log_error("build symkey packet failed: %s\n", g10_errstr(rc) ); + log_error("build symkey packet failed: %s\n", gpg_strerror (rc) ); xfree (enc); } @@ -358,7 +358,7 @@ encrypt_simple (const char *filename, int mode, int use_seskey) if (!opt.no_literal) { if ( (rc = build_packet( out, &pkt )) ) - log_error("build_packet failed: %s\n", g10_errstr(rc) ); + log_error("build_packet failed: %s\n", gpg_strerror (rc) ); } else { @@ -441,7 +441,7 @@ write_symkey_enc (STRING2KEY *symkey_s2k, DEK *symkey_dek, DEK *dek, pkt.pkt.symkey_enc = enc; if ((rc=build_packet(out,&pkt))) - log_error("build symkey_enc packet failed: %s\n",g10_errstr(rc)); + log_error("build symkey_enc packet failed: %s\n",gpg_strerror (rc)); xfree(enc); return rc; @@ -708,7 +708,7 @@ encrypt_crypt (ctrl_t ctrl, int filefd, const char *filename, if (!opt.no_literal) { if ((rc = build_packet( out, &pkt ))) - log_error ("build_packet failed: %s\n", g10_errstr(rc)); + log_error ("build_packet failed: %s\n", gpg_strerror (rc)); } else { @@ -912,7 +912,7 @@ write_pubkey_enc_from_list (PK_LIST pk_list, DEK *dek, iobuf_t out) rc = build_packet (out, &pkt); if (rc) log_error ("build_packet(pubkey_enc) failed: %s\n", - g10_errstr (rc)); + gpg_strerror (rc)); } free_pubkey_enc(enc); if (rc) @@ -950,7 +950,7 @@ encrypt_crypt_files (ctrl_t ctrl, int nfiles, char **files, strlist_t remusr) rc = encrypt_crypt (ctrl, -1, line, remusr, 0, NULL, -1); if (rc) log_error ("encryption of '%s' failed: %s\n", - print_fname_stdin(line), g10_errstr(rc) ); + print_fname_stdin(line), gpg_strerror (rc) ); write_status( STATUS_FILE_DONE ); } } @@ -961,7 +961,7 @@ encrypt_crypt_files (ctrl_t ctrl, int nfiles, char **files, strlist_t remusr) print_file_status(STATUS_FILE_START, *files, 2); if ( (rc = encrypt_crypt (ctrl, -1, *files, remusr, 0, NULL, -1)) ) log_error("encryption of '%s' failed: %s\n", - print_fname_stdin(*files), g10_errstr(rc) ); + print_fname_stdin(*files), gpg_strerror (rc) ); write_status( STATUS_FILE_DONE ); files++; } |