Page MenuHome GnuPG

secmem routines should be in libgpg-error as gpgrt_*
Open, NormalPublic

Description

We have secmem routines in libgcrypt now. Targeting libgcrypt 1.9, it is better move those functions to libgpg-error.

Details

Due Date
Apr 30 2018, 5:00 PM

Event Timeline

werner triaged this task as Normal priority.Jun 1 2017, 9:31 PM

secmem routines are installed into gniibe/secmem branch.
Please note that it's only secmem routines, not malloc_secure.

Now, I wonder the original intention.
Do we intend to have malloc_secure in gpgrt?

Do we need to expose the secmem routines, as a public interface of gpgrt?

Do we need to expose the secmem routines, as a public interface of gpgrt?

I would find it useful. For example I'm making a utility that gets a passphrase with GPGME and gpg-agent, and would like to copy it into a buffer that lives on after closing the context.