Skip to content

Commit 0bc3595

Browse files
committed
util: prefix util functions with ntlm
1 parent 4ea5beb commit 0bc3595

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/crypt_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static inline void HMAC_CTX_free(HMAC_CTX *ctx)
7171
static inline int HMAC_CTX_reset(HMAC_CTX *ctx)
7272
{
7373
HMAC_CTX_cleanup(ctx);
74-
memzero(ctx, sizeof(HMAC_CTX));
74+
ntlm_memzero(ctx, sizeof(HMAC_CTX));
7575
return 1;
7676
}
7777

src/ntlm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ int ntlm_client_set_hostname(
134134
static void free_credentials(ntlm_client *ntlm)
135135
{
136136
if (ntlm->password)
137-
memzero(ntlm->password, strlen(ntlm->password));
137+
ntlm_memzero(ntlm->password, strlen(ntlm->password));
138138

139139
if (ntlm->password_utf16)
140-
memzero(ntlm->password_utf16, ntlm->password_utf16_len);
140+
ntlm_memzero(ntlm->password_utf16, ntlm->password_utf16_len);
141141

142142
free(ntlm->username);
143143
free(ntlm->username_upper);

src/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "compat.h"
1313
#include "util.h"
1414

15-
void memzero(void *data, size_t size)
15+
void ntlm_memzero(void *data, size_t size)
1616
{
1717
volatile uint8_t *scan = (volatile uint8_t *)data;
1818

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
#ifndef PRIVATE_UTIL_H__
1010
#define PRIVATE_UTIL_H__
1111

12-
extern void memzero(void *data, size_t size);
12+
extern void ntlm_memzero(void *data, size_t size);
1313

1414
#endif /* PRIVATE_UTIL_H__ */

0 commit comments

Comments
 (0)