Fix new snsecprintf for secure testing

This commit is contained in:
Scott Haseley 2017-02-18 23:53:32 -05:00
parent 675f1e0f91
commit dda4c39752

View File

@ -109,7 +109,7 @@ secprintf(const char * secret, const char * msg, const char * name)
#else #else
static int static int
secprintf_common(use_buf int, size_t len, char *buffer, secprintf_common(int use_buf, size_t b_len, char *buffer,
const char *secret, const char *msg, const char *name) const char *secret, const char *msg, const char *name)
{ {
char *hash, *salt, *fullmsg; char *hash, *salt, *fullmsg;
@ -172,7 +172,7 @@ snsecprintf(size_t b_len, char *buffer, const char *secret, const char *msg, con
int int
secprintf(const char * secret, const char * msg, const char * name) secprintf(const char * secret, const char * msg, const char * name)
{ {
return snsecprintf(0, 0, NULL, secret, msg, name); return secprintf_common(0, 0, NULL, secret, msg, name);
} }
#endif #endif