diff options
author | Werner Koch <[email protected]> | 2001-11-24 17:43:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-11-24 17:43:43 +0000 |
commit | bab7fa0b297b8e99f5e222bbceda0716b62f7215 (patch) | |
tree | b3fe5f7ec7e1c1bed0bdd98f036c27d605106d15 /sm/sign.c | |
parent | Signing does now work. There is no secret key management yet, so you (diff) | |
download | gnupg-bab7fa0b297b8e99f5e222bbceda0716b62f7215.tar.gz gnupg-bab7fa0b297b8e99f5e222bbceda0716b62f7215.zip |
Added new directory common to enable sharing of some code and error
numbers between gpg, gpgsm and gpg-agent. Move some files and code to
there.
Diffstat (limited to '')
-rw-r--r-- | sm/sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -136,7 +136,7 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp) if (!kh) { log_error (_("failed to allocated keyDB handle\n")); - rc = GPGSM_General_Error; + rc = GNUPG_General_Error; goto leave; } @@ -238,7 +238,7 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp) if (!algo) { log_error ("unknown hash algorithm `%s'\n", algoid? algoid:"?"); - rc = GPGSM_Bug; + rc = GNUPG_Bug; goto leave; } gcry_md_enable (data_md, algo); @@ -261,7 +261,7 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp) if ( !digest || !digest_len) { log_error ("problem getting the hash of the data\n"); - rc = GPGSM_Bug; + rc = GNUPG_Bug; goto leave; } err = ksba_cms_set_message_digest (cms, signer, digest, digest_len); |