chiark / gitweb /
tokens: fiddle with commented-out debugging
[hippotat.git] / src / bin / server.rs
index 3e71b4134776e76778cb4373c1712fd2c3e3e50e..26abf5eb7c72c07e94accd0ce38a9fc92e468adf 100644 (file)
@@ -122,6 +122,8 @@ async fn handle(
     let hmac_exp = token_hmac(secret, client_time_s.as_bytes());
     // We also definitely want a consttime memeq for the hmac value
     let hmac_ok = hmac_got.ct_eq(&hmac_exp);
+    //dbg!(DumpHex(&hmac_exp), client.is_some());
+    //dbg!(DumpHex(hmac_got), hmac_ok, client_exists);
     if ! bool::from(hmac_ok & client_exists) {
       throw!(anyhow!("xxx should be a 403 error"));
     }