aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/pubkey.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-11-15 20:32:25 +0000
committerWerner Koch <[email protected]>1999-11-15 20:32:25 +0000
commit37f3c09edb6d6b866cd8e8bed76c304e26fd7c44 (patch)
tree8d5b61e4e1812305691858cfe738211b56b1a12b /cipher/pubkey.c
parentSee ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner Koch (diff)
downloadgnupg-37f3c09edb6d6b866cd8e8bed76c304e26fd7c44.tar.gz
gnupg-37f3c09edb6d6b866cd8e8bed76c304e26fd7c44.zip
See ChangeLog: Mon Nov 15 21:36:02 CET 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r--cipher/pubkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/pubkey.c b/cipher/pubkey.c
index 8d00d95a4..b77ebffaa 100644
--- a/cipher/pubkey.c
+++ b/cipher/pubkey.c
@@ -670,7 +670,7 @@ sexp_to_key( GCRY_SEXP sexp, int want_private, MPI **retarray, int *retalgo)
elems1 = algo_info_table[i].common_elements;
elems2 = want_private? algo_info_table[i].secret_elements
: algo_info_table[i].public_elements;
- array = g10_calloc( (strlen(elems1)+strlen(elems2)+1, sizeof *array );
+ array = g10_calloc( strlen(elems1)+strlen(elems2)+1, sizeof *array );
if( !array )
return GCRYERR_NO_MEM;
@@ -825,7 +825,7 @@ gcry_pk_sign( GCRY_SEXP *r_sig, GCRY_SEXP s_hash, GCRY_SEXP s_skey )
release_mpi_array( skey );
return -1; /* fixme: get a real errorcode for this */
}
- result = g10_xcalloc_clear( (strlen(algo_elems)+1) , sizeof *result );
+ result = g10_xcalloc( (strlen(algo_elems)+1) , sizeof *result );
rc = pubkey_sign( algo, result, hash, skey );
release_mpi_array( skey );
mpi_free( hash );