aboutsummaryrefslogtreecommitdiff
path: root/libntp/authusekey.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/authusekey.c')
-rw-r--r--libntp/authusekey.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/libntp/authusekey.c b/libntp/authusekey.c
index 40dd3737ddf2..bef7b8473248 100644
--- a/libntp/authusekey.c
+++ b/libntp/authusekey.c
@@ -15,9 +15,6 @@
* high order bit of each byte a parity bit. "Ascii" means a 1-to-8
* character string whose ascii representation is used as the key.
*/
-
-#define KEY_TYPE_MD5 4
-
int
authusekey(
keyid_t keyno,
@@ -31,17 +28,8 @@ authusekey(
cp = str;
len = strlen((const char *)cp);
if (len == 0)
- return 0;
-
- switch(keytype) {
- case KEY_TYPE_MD5:
- MD5auth_setkey(keyno, str, (int)strlen((const char *)str));
- break;
-
- default:
- /* Oh, well */
return 0;
- }
+ MD5auth_setkey(keyno, keytype, str, (int)strlen((const char *)str));
return 1;
}