]> err.no Git - yubikey-server-c/commitdiff
BAD_OTP, not BAD OTP as the status
authorTollef Fog Heen <tfheen@err.no>
Mon, 12 Oct 2009 08:52:05 +0000 (10:52 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 12 Oct 2009 08:52:05 +0000 (10:52 +0200)
src/main.c

index 5051ace538a6034ac4a3ea6e20eb03d50f136062..66f5107afed8a0e594e8208edf65473081b6c5db 100644 (file)
@@ -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);