[PATCH himitsu-totp] cmd/hitotp: Update for himitsu::client changes
Export this patch
---
cmd/hitotp/main.ha | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/cmd/hitotp/main.ha b/cmd/hitotp/main.ha
index 79a6186..f3a5198 100644
--- a/cmd/hitotp/main.ha
+++ b/cmd/hitotp/main.ha
@@ -3,7 +3,6 @@ use encoding::base32;
use fmt;
use getopt;
use io;
-use memio;
use net;
use net::unix;
use net::uri;
@@ -152,14 +151,11 @@ export fn main() void = {
const key = match (client::next(&keyiter)) {
case void =>
break;
- case let key: const str =>
+ case let key: query::query =>
yield key;
case let err: client::error =>
fmt::fatalf("Himitsu error: {}", client::strerror(err));
};
-
- const keybuf = memio::fixed(strings::toutf8(key));
- const key = query::parse(&keybuf)!;
defer query::finish(&key);
if (!add) {
let (label, code) = do_totp(&key);
--
2.43.0
Thanks!
To git@git.sr.ht:~sircmpwn/himitsu-totp
12b1a8e..d6083ac master -> master