projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt HMAC to the EVP_MD_CTX changes
[oweals/openssl.git]
/
include
/
openssl
/
hmac.h
diff --git
a/include/openssl/hmac.h
b/include/openssl/hmac.h
index 011e2ae333c1ee384cbc21ca3416b3435de5fdea..7962087ec6506cadc6461bd5eeaf0baab1a83e26 100644
(file)
--- a/
include/openssl/hmac.h
+++ b/
include/openssl/hmac.h
@@
-77,9
+77,10
@@
typedef struct hmac_ctx_st {
unsigned char key[HMAC_MAX_MD_CBLOCK];
} HMAC_CTX;
unsigned char key[HMAC_MAX_MD_CBLOCK];
} HMAC_CTX;
+# define HMAC_CTX_EMPTY { NULL, NULL, NULL, NULL, 0, "" }
# define HMAC_size(e) (EVP_MD_size((e)->md))
# define HMAC_size(e) (EVP_MD_size((e)->md))
-
void
HMAC_CTX_init(HMAC_CTX *ctx);
+
int
HMAC_CTX_init(HMAC_CTX *ctx);
void HMAC_CTX_cleanup(HMAC_CTX *ctx);
#ifdef OPENSSL_USE_DEPRECATED
void HMAC_CTX_cleanup(HMAC_CTX *ctx);
#ifdef OPENSSL_USE_DEPRECATED