Share a single buf_shift_right() implementation
Move the identical function used by both SAE and EAP-pwd to src/utils/common.c to avoid duplicated implementation. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
1e237903f5
commit
ff229da309
4 changed files with 11 additions and 18 deletions
|
@ -477,6 +477,7 @@ int hwaddr_aton2(const char *txt, u8 *addr);
|
|||
int hex2byte(const char *hex);
|
||||
int hexstr2bin(const char *hex, u8 *buf, size_t len);
|
||||
void inc_byte_array(u8 *counter, size_t len);
|
||||
void buf_shift_right(u8 *buf, size_t len, size_t bits);
|
||||
void wpa_get_ntp_timestamp(u8 *buf);
|
||||
int wpa_scnprintf(char *buf, size_t size, const char *fmt, ...);
|
||||
int wpa_snprintf_hex_sep(char *buf, size_t buf_size, const u8 *data, size_t len,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue