mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Removed the use of g10defs.h.
This required some code cleanups and the introduction of a few accessor ducntions in mpi.
This commit is contained in:
parent
d382fece03
commit
9f433cccca
29 changed files with 267 additions and 157 deletions
|
@ -308,8 +308,7 @@ do_sign( PKT_secret_key *sk, PKT_signature *sig,
|
|||
xfree (snbuf);
|
||||
if (!rc)
|
||||
{
|
||||
sig->data[0] = mpi_alloc ( (rbuflen+BYTES_PER_MPI_LIMB-1)
|
||||
/ BYTES_PER_MPI_LIMB );
|
||||
sig->data[0] = mpi_alloc ( mpi_nlimb_hint_from_nbytes (rbuflen) );
|
||||
mpi_set_buffer (sig->data[0], rbuf, rbuflen, 0);
|
||||
xfree (rbuf);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue