]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ms_funcs: Make challenge_hash() non-static
authorJouni Malinen <j@w1.fi>
Sun, 29 Mar 2015 19:27:00 +0000 (22:27 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 Mar 2015 19:27:00 +0000 (22:27 +0300)
This function can be of use outside ms_funcs.c.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/ms_funcs.c
src/crypto/ms_funcs.h

index 49a5c1c245d67e8fc4091df55846de00ed38f231..5f57656038fe8405a4ef25d9b6a078278e4b90d0 100644 (file)
@@ -78,9 +78,8 @@ static int utf8_to_ucs2(const u8 *utf8_string, size_t utf8_string_len,
  * @challenge: 8-octet Challenge (OUT)
  * Returns: 0 on success, -1 on failure
  */
-static int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
-                         const u8 *username, size_t username_len,
-                         u8 *challenge)
+int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
+                  const u8 *username, size_t username_len, u8 *challenge)
 {
        u8 hash[SHA1_MAC_LEN];
        const unsigned char *addr[3];
index bd9bfee95b7c27dfd1c22bc0f33ce994158df2aa..b5b5918e1a55563cb076283098f1ca167ce909ad 100644 (file)
@@ -33,6 +33,8 @@ int nt_challenge_response(const u8 *challenge, const u8 *password,
 
 void challenge_response(const u8 *challenge, const u8 *password_hash,
                        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,
                     u8 *password_hash);
 int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash);