diff options
author | Werner Koch <wk@gnupg.org> | 2006-10-06 12:58:18 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-10-06 12:58:18 +0200 |
commit | 5134fc27b34df55565b713781bf40cb02a400646 (patch) | |
tree | 5223a9d0aece1b425ac19af91a609d7228293db1 /agent/agent.h | |
parent | * keyserver.c (keyserver_spawn): Write the 16-digit keyid rather (diff) | |
download | gnupg2-5134fc27b34df55565b713781bf40cb02a400646.tar.xz gnupg2-5134fc27b34df55565b713781bf40cb02a400646.zip |
Add TLS hash mode
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index 3667e8149..cd5120721 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -36,8 +36,15 @@ #include "../common/errors.h" #include "membuf.h" +/* To convey some special hash algorithms we use algorithm numbers + reserved for application use. */ +#ifndef GCRY_MD_USER +#define GCRY_MD_USER 1024 +#endif +#define GCRY_MD_USER_TLS_MD5SHA1 (GCRY_MD_USER+1) -#define MAX_DIGEST_LEN 24 +/* Maximum length of a digest. */ +#define MAX_DIGEST_LEN 36 /* A large struct name "opt" to keep global flags */ struct |