ms_funcs: Make challenge_hash() non-static
This function can be of use outside ms_funcs.c. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
0d33f5040f
commit
5955cfaacd
2 changed files with 4 additions and 3 deletions
|
@ -78,9 +78,8 @@ static int utf8_to_ucs2(const u8 *utf8_string, size_t utf8_string_len,
|
||||||
* @challenge: 8-octet Challenge (OUT)
|
* @challenge: 8-octet Challenge (OUT)
|
||||||
* Returns: 0 on success, -1 on failure
|
* Returns: 0 on success, -1 on failure
|
||||||
*/
|
*/
|
||||||
static int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
|
int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
|
||||||
const u8 *username, size_t username_len,
|
const u8 *username, size_t username_len, u8 *challenge)
|
||||||
u8 *challenge)
|
|
||||||
{
|
{
|
||||||
u8 hash[SHA1_MAC_LEN];
|
u8 hash[SHA1_MAC_LEN];
|
||||||
const unsigned char *addr[3];
|
const unsigned char *addr[3];
|
||||||
|
|
|
@ -33,6 +33,8 @@ int nt_challenge_response(const u8 *challenge, const u8 *password,
|
||||||
|
|
||||||
void challenge_response(const u8 *challenge, const u8 *password_hash,
|
void challenge_response(const u8 *challenge, const u8 *password_hash,
|
||||||
u8 *response);
|
u8 *response);
|
||||||
|
int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
|
||||||
|
const u8 *username, size_t username_len, u8 *challenge);
|
||||||
int nt_password_hash(const u8 *password, size_t password_len,
|
int nt_password_hash(const u8 *password, size_t password_len,
|
||||||
u8 *password_hash);
|
u8 *password_hash);
|
||||||
int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash);
|
int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash);
|
||||||
|
|
Loading…
Reference in a new issue