diff options
author | Werner Koch <[email protected]> | 2009-09-28 14:37:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-09-28 14:37:48 +0000 |
commit | c11c23b6acd3c6df79bb772c8698cf0858ae0ea7 (patch) | |
tree | 4ea423c2316e1a6678389737622de90dbab346db /g10/gpg.c | |
parent | s/DOTLOCK/dotlock_t/. (diff) | |
download | gnupg-c11c23b6acd3c6df79bb772c8698cf0858ae0ea7.tar.gz gnupg-c11c23b6acd3c6df79bb772c8698cf0858ae0ea7.zip |
Rename encode.c to encrypt.c.
Rename function in a simlar way.
Re-indent encrypt.c
Diffstat (limited to '')
-rw-r--r-- | g10/gpg.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2059,9 +2059,9 @@ main (int argc, char **argv) malloc_hooks.realloc = gcry_realloc; malloc_hooks.free = gcry_free; assuan_set_malloc_hooks (&malloc_hooks); + assuan_set_assuan_log_prefix (log_get_prefix (NULL)); assuan_set_gpg_err_source (GPG_ERR_SOURCE_DEFAULT); - /* Try for a version specific config file first */ default_configname = get_default_configname (); if (default_config) @@ -3418,26 +3418,26 @@ main (int argc, char **argv) case aStore: /* only store the file */ if( argc > 1 ) wrong_args(_("--store [filename]")); - if( (rc = encode_store(fname)) ) + if( (rc = encrypt_store(fname)) ) log_error ("storing `%s' failed: %s\n", print_fname_stdin(fname),g10_errstr(rc) ); break; case aSym: /* encrypt the given file only with the symmetric cipher */ if( argc > 1 ) wrong_args(_("--symmetric [filename]")); - if( (rc = encode_symmetric(fname)) ) + if( (rc = encrypt_symmetric(fname)) ) log_error (_("symmetric encryption of `%s' failed: %s\n"), print_fname_stdin(fname),g10_errstr(rc) ); break; case aEncr: /* encrypt the given file */ if(multifile) - encode_crypt_files(argc, argv, remusr); + encrypt_crypt_files(argc, argv, remusr); else { if( argc > 1 ) wrong_args(_("--encrypt [filename]")); - if( (rc = encode_crypt(fname,remusr,0)) ) + if( (rc = encrypt_crypt(fname,remusr,0)) ) log_error("%s: encryption failed: %s\n", print_fname_stdin(fname), g10_errstr(rc) ); } @@ -3458,7 +3458,7 @@ main (int argc, char **argv) " while in %s mode\n"),compliance_option_string()); else { - if( (rc = encode_crypt(fname,remusr,1)) ) + if( (rc = encrypt_crypt(fname,remusr,1)) ) log_error("%s: encryption failed: %s\n", print_fname_stdin(fname), g10_errstr(rc) ); } |