Ensure that both the MD and key have been initialised before attempting to
[openssl.git] / crypto / hmac / hmac.h
index 81aa49da49969d42aee5dd1fad8d0ad1e1b5f03d..61946fc4567bac34664b6c078b1668952bed57ef 100644 (file)
@@ -75,6 +75,7 @@ typedef struct hmac_ctx_st {
     EVP_MD_CTX o_ctx;
     unsigned int key_length;
     unsigned char key[HMAC_MAX_MD_CBLOCK];
+    int key_init;
 } HMAC_CTX;
 
 # define HMAC_size(e)    (EVP_MD_size((e)->md))