提交 2194351f 编写于 作者: S Steffan Karger 提交者: Kurt Roeckx

const correctness: make HMAC_size() take a const *

CLA: none; trivial
Signed-off-by: NKurt Roeckx <kurt@roeckx.be>
Reviewed-by: NRich Salz <rsalz@openssl.org>

GH: #1070
上级 d139723b
......@@ -164,7 +164,7 @@ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
return 0;
}
size_t HMAC_size(HMAC_CTX *ctx)
size_t HMAC_size(const HMAC_CTX *ctx)
{
return EVP_MD_size((ctx)->md);
}
......
......@@ -67,7 +67,7 @@
extern "C" {
#endif
size_t HMAC_size(HMAC_CTX *e);
size_t HMAC_size(const HMAC_CTX *e);
HMAC_CTX *HMAC_CTX_new(void);
int HMAC_CTX_reset(HMAC_CTX *ctx);
void HMAC_CTX_free(HMAC_CTX *ctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册