aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgpgme.vers
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-03-14 12:03:46 +0000
committerWerner Koch <[email protected]>2025-03-14 12:08:37 +0000
commit926b1f1f1e3e382f08cc57fc86d5892649514007 (patch)
treeddc1bab10152c7de64a9c4167620f0683eac4a7f /src/libgpgme.vers
parentm4: Update libassuan.m4. (diff)
downloadgpgme-926b1f1f1e3e382f08cc57fc86d5892649514007.tar.gz
gpgme-926b1f1f1e3e382f08cc57fc86d5892649514007.zip
Add API gpgme_op_random_value.
* src/genrandom.c (getrandom_size_t): New. (gpgme_op_random_value): New. * src/gpgme.def: Add new function. * src/libgpgme.vers: Ditto. * src/gpgme.h.in: Add prototype. * tests/run-genrandom.c: Add an option to use the new function. -- The implementation is not optimized but sufficient for our use case. Possible improvements for this and gpgme_op_random_bytes are a cache for random bytes in the context so that we do not need to get out to gpgme for just a few random bytes. GnuPG-bug-id: 6694
Diffstat (limited to 'src/libgpgme.vers')
-rw-r--r--src/libgpgme.vers1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libgpgme.vers b/src/libgpgme.vers
index 83f8c87b..555f9fc0 100644
--- a/src/libgpgme.vers
+++ b/src/libgpgme.vers
@@ -274,6 +274,7 @@ GPGME_1.0 {
gpgme_op_setownertrust_start;
gpgme_op_random_bytes;
+ gpgme_op_random_value;
local:
*;