add reset, needed by nsd.

This commit is contained in:
christos 2018-02-09 17:11:14 +00:00
parent 3fb6240442
commit 0a6da94db6

View File

@ -119,6 +119,12 @@ static inline void HMAC_CTX_free(HMAC_CTX *ctx)
HMAC_CTX_cleanup(ctx);
free(ctx);
}
static inline void HMAC_CTX_reset(HMAC_CTX *ctx)
{
HMAC_CTX_cleanup(ctx);
HMAC_CTX_init(ctx);
}
#endif