summaryrefslogtreecommitdiffstats
path: root/src/eap_common/chap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eap_common/chap.c')
-rw-r--r--src/eap_common/chap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/eap_common/chap.c b/src/eap_common/chap.c
index a088aff..60bfc1c 100644
--- a/src/eap_common/chap.c
+++ b/src/eap_common/chap.c
@@ -1,6 +1,6 @@
/*
* CHAP-MD5 (RFC 1994)
- * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -15,11 +15,10 @@
#include "includes.h"
#include "common.h"
-#include "md5.h"
-#include "crypto.h"
+#include "crypto/crypto.h"
#include "chap.h"
-void chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
+int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
size_t challenge_len, u8 *response)
{
const u8 *addr[3];
@@ -31,5 +30,5 @@ void chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
len[1] = secret_len;
addr[2] = challenge;
len[2] = challenge_len;
- md5_vector(3, addr, len, response);
+ return md5_vector(3, addr, len, response);
}
OpenPOWER on IntegriCloud