From f955e98cf262b3a487bd5a21d93e6a563b5362fd Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 12 Oct 2009 10:52:05 +0200 Subject: [PATCH] BAD_OTP, not BAD OTP as the status --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 5051ace..66f5107 100644 --- a/src/main.c +++ b/src/main.c @@ -343,7 +343,7 @@ static int handle_request(void * UNUSED(data), } if (! yubikey_modhex_p(otp)) { - status = "BAD OTP"; + status = "BAD_OTP"; signature = sign_request(shared_secret, shared_secret_len, NULL, status, timestamp); send_response(conn, signature, status, NULL, timestamp); @@ -362,7 +362,7 @@ static int handle_request(void * UNUSED(data), yubikey_parse((uint8_t*)(otp_token), (const uint8_t *)stats.secret_key, &token); if (!yubikey_crc_ok_p((void*)&token) || memcmp(token.uid, stats.secret_uid, YUBIKEY_UID_SIZE) != 0) { - status = "BAD OTP"; + status = "BAD_OTP"; signature = sign_request(shared_secret, shared_secret_len, NULL, status, timestamp); send_response(conn, signature, status, NULL, timestamp); -- 2.39.5