summaryrefslogtreecommitdiff
path: root/doc/gcrypt.texi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-09-07 10:06:46 +0200
committerWerner Koch <wk@gnupg.org>2013-09-18 21:03:40 +0200
commit85722afb379f7a392a8117b895de273fd88c4ebc (patch)
tree41723f41081f114b43f37c2acc49a57cd988d5d6 /doc/gcrypt.texi
parent89103ce00e862cc709e80fa41f2ee13d54093ec5 (diff)
downloadlibgcrypt-85722afb379f7a392a8117b895de273fd88c4ebc.tar.gz
pk: Simplify the public key dispatcher pubkey.c.
* src/cipher-proto.h (gcry_pk_spec_t): Add fields ALGO and FLAGS. * cipher/dsa.c (_gcry_pubkey_spec_dsa): Set these fields. * cipher/ecc.c (_gcry_pubkey_spec_ecdsa): Ditto. (_gcry_pubkey_spec_ecdh): Ditto. * cipher/rsa.c (_gcry_pubkey_spec_rsa): Ditto. * cipher/elgamal.c (_gcry_pubkey_spec_elg): Ditto (_gcry_pubkey_spec_elg_e): New. * cipher/pubkey.c: Change most code to replace the former module system by a simpler system to gain information about the algorithms. (disable_pubkey_algo): SImplified. Not anymore thread-safe, though. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc/gcrypt.texi')
-rw-r--r--doc/gcrypt.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi
index fd7680e2..4c1485c5 100644
--- a/doc/gcrypt.texi
+++ b/doc/gcrypt.texi
@@ -2589,8 +2589,10 @@ operations. @var{cmd} controls what is to be done. The return value is
@table @code
@item GCRYCTL_DISABLE_ALGO
Disable the algorithm given as an algorithm id in @var{buffer}.
-@var{buffer} must point to an @code{int} variable with the algorithm id
-and @var{buflen} must have the value @code{sizeof (int)}.
+@var{buffer} must point to an @code{int} variable with the algorithm
+id and @var{buflen} must have the value @code{sizeof (int)}. This
+fucntion is not thread safe and should thus be used before any other
+threads are started.
@end table
@end deftypefun