mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Implemented the --gen-key command as we can't use the gpgsm-gencert.sh under Windows.
This commit is contained in:
parent
09cc0ee7be
commit
0b66f30d66
33 changed files with 714 additions and 317 deletions
|
@ -52,7 +52,7 @@ init_membuf_secure (membuf_t *mb, int initiallen)
|
|||
mb->len = 0;
|
||||
mb->size = initiallen;
|
||||
mb->out_of_core = 0;
|
||||
mb->buf = xtrymalloc (initiallen);
|
||||
mb->buf = xtrymalloc_secure (initiallen);
|
||||
if (!mb->buf)
|
||||
mb->out_of_core = errno;
|
||||
}
|
||||
|
@ -87,6 +87,13 @@ put_membuf (membuf_t *mb, const void *buf, size_t len)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
put_membuf_str (membuf_t *mb, const char *string)
|
||||
{
|
||||
put_membuf (mb, string, strlen (string));
|
||||
}
|
||||
|
||||
|
||||
void *
|
||||
get_membuf (membuf_t *mb, size_t *len)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue