mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add TLS hash mode
This commit is contained in:
parent
ae390ea0a2
commit
5134fc27b3
5 changed files with 150 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue