From: Tollef Fog Heen Date: Mon, 12 Oct 2009 08:52:05 +0000 (+0200) Subject: BAD_OTP, not BAD OTP as the status X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f955e98cf262b3a487bd5a21d93e6a563b5362fd;p=yubikey-server-c BAD_OTP, not BAD OTP as the status --- 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);