mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* gpgsm.c (main): Add secmem features and set the random seed file.
(gpgsm_exit): Update the random seed file and enable debug output. * g10.c (main): Add secmem features and set the random seed file. (g10_exit): Update the random seed file. * parse-packet.c (parse_signature,read_protected_v3_mpi) (parse_key): Fixed use of mpi_set_opaque. * keygen.c (gen_card_key): Ditto.
This commit is contained in:
parent
979ed0ca26
commit
6f7ed05900
8 changed files with 510 additions and 252 deletions
|
@ -63,19 +63,24 @@ write_comment( iobuf_t out, const char *s )
|
|||
|
||||
|
||||
KBNODE
|
||||
make_comment_node( const char *s )
|
||||
make_comment_node_from_buffer (const char *s, size_t n)
|
||||
{
|
||||
PACKET *pkt;
|
||||
size_t n = strlen(s);
|
||||
|
||||
pkt = xcalloc (1, sizeof *pkt );
|
||||
pkt = gcry_xcalloc( 1, sizeof *pkt );
|
||||
pkt->pkttype = PKT_COMMENT;
|
||||
pkt->pkt.comment = xmalloc ( sizeof *pkt->pkt.comment + n - 1 );
|
||||
pkt->pkt.comment = gcry_xmalloc( sizeof *pkt->pkt.comment + n - 1 );
|
||||
pkt->pkt.comment->len = n;
|
||||
strcpy(pkt->pkt.comment->data, s);
|
||||
return new_kbnode( pkt );
|
||||
}
|
||||
|
||||
KBNODE
|
||||
make_comment_node( const char *s )
|
||||
{
|
||||
return make_comment_node_from_buffer (s, strlen (s));
|
||||
}
|
||||
|
||||
|
||||
KBNODE
|
||||
make_mpi_comment_node( const char *s, gcry_mpi_t a )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue