Compare commits

...

10 commits

Author SHA1 Message Date
Carson McManus
96a30c6150
setup: debug print full authenticator status when verification fails (#396) 2024-07-16 20:32:18 -04:00
Carson McManus
dd153a617c
fix a potential panic when querying authenticator status (#395) 2024-07-16 20:13:39 -04:00
Carson McManus
28c7a797cf
fix new lints (#397) 2024-07-16 20:07:33 -04:00
Carson McManus
c2a72fee6c update PKGBUILD 2024-06-02 18:21:36 -04:00
mp
602acc6641
PKGBUILD: disabled link time optimization to avoid build errors (#385)
This solves build errors for me described in
https://aur.archlinux.org/packages/steamguard-cli-git#comment-884235 and
also reproduced in
https://github.com/dyc3/steamguard-cli/actions/runs/9340294638/job/25705683797

```
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcWfC4he/symbols.o" "/var/ab/.cache/yay/steamguard-cli-git/src/steamguard-cli/target/release/deps/steamguard-22c99af53504a9e5.steamguard.7abfd362c63e99bf-cgu.13.rcgu.o" "-Wl,--as-needed" "-L" "/var/ab/.cache/yay/steamguard-cli-git/src/steamguard-cli/target/release/deps" "-L" "/var/ab/.cache/yay/steamguard-cli-git/src/steamguard-cli/target/release/build/ring-0dc12641040c6e8f/out" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcWfC4he/libring-949bba2bc6e40fcb.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-3ce9c50abe6de474.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/var/ab/.cache/yay/steamguard-cli-git/src/steamguard-cli/target/release/deps/steamguard-22c99af53504a9e5" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/sbin/ld: /var/ab/.cache/yay/steamguard-cli-git/src/steamguard-cli/target/release/deps/steamguard-22c99af53504a9e5.steamguard.7abfd362c63e99bf-cgu.13.rcgu.o: in function `ring::aead::aes_gcm::aes_gcm_seal':
          steamguard.7abfd362c63e99bf-cgu.13:(.text._ZN4ring4aead7aes_gcm12aes_gcm_seal17hdce0b4a4f2d32350E+0xa9): undefined reference to `ring_core_0_17_8_OPENSSL_ia32cap_P'
```
2024-06-02 21:59:36 +00:00
Carson McManus
b4564b7d5e Release steamguard v0.14.0, steamguard-cli v0.14.0 2024-06-02 14:12:44 -04:00
Carson McManus
d30ba017c9 Bump steamguard v0.14.0, steamguard-cli v0.14.0 2024-06-02 14:12:19 -04:00
Carson McManus
37ae7c76a6 Release steamguard v0.14.0, steamguard-cli v0.14.0 2024-06-02 14:10:37 -04:00
Carson McManus
ef72bd898c Bump steamguard v0.14.0, steamguard-cli v0.14.0, safety bump steamguard-cli v0.14.0 2024-06-02 14:02:38 -04:00
Carson McManus
52044c95bb
upgrade more misc dependencies (#384)
- upgrade uuid to 1.8
- remove scraper from deps
- upgrade cookie to 0.18
- upgrade reqwest to 0.12
- upgrade qrcode to 0.14
- upgrade dirs to 5.0.1
2024-06-02 17:56:05 +00:00
7 changed files with 229 additions and 837 deletions

1033
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@ members = ["steamguard"]
[package]
name = "steamguard-cli"
version = "0.13.0"
version = "0.14.0"
authors = ["dyc3 (Carson McManus) <carson.mcmanus1@gmail.com>"]
edition = "2021"
description = "A command line utility to generate Steam 2FA codes and respond to confirmations."
@ -32,7 +32,7 @@ anyhow = "^1.0"
base64 = "0.22.1"
text_io = "0.1.8"
rpassword = "7.2.0"
reqwest = { version = "0.11", default-features = false, features = [
reqwest = { version = "0.12", default-features = false, features = [
"blocking",
"json",
"cookies",
@ -47,16 +47,16 @@ clap = { version = "4.5.4", features = ["derive", "cargo", "env"] }
clap_complete = "4.5.2"
log = "0.4.19"
stderrlog = "0.6"
cookie = "0.14"
cookie = "0.18"
regex = "1"
lazy_static = "1.4.0"
uuid = { version = "0.8", features = ["v4"] }
steamguard = { version = "^0.13.0", path = "./steamguard" }
dirs = "3.0.2"
uuid = { version = "1.8", features = ["v4"] }
steamguard = { version = "^0.14.0", path = "./steamguard" }
dirs = "5.0.1"
aes = { version = "0.8.3", features = ["zeroize"] }
thiserror = "1.0.61"
crossterm = { version = "0.23.2", features = ["event-stream"] }
qrcode = { version = "0.12.0", optional = true }
qrcode = { version = "0.14.0", optional = true }
gethostname = "0.4.3"
secrecy = { version = "0.8", features = ["serde"] }
zeroize = { version = "^1.6.0", features = ["std", "zeroize_derive"] }

View file

@ -3,7 +3,7 @@
_pkgname=steamguard-cli
pkgname=${_pkgname}-git
pkgver=0.8.1.r1.fe0d6e9a
pkgver=0.14.0.r1.602acc66
pkgrel=1
pkgdesc="A command line utility to generate Steam 2FA codes and respond to confirmations."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
@ -12,6 +12,7 @@ license=('GPL3')
makedepends=('rust' 'cargo' 'git')
source=("git+https://github.com/dyc3/steamguard-cli.git")
sha256sums=('SKIP')
options=(!lto)
pkgver() {
cd "${srcdir}/${_pkgname}"

View file

@ -193,6 +193,7 @@ impl SetupCommand {
"authenticator state: {} -- did not actually finalize",
status.state()
);
debug!("full status: {:#?}", status);
manager.remove_account(&account_name);
manager.save()?;
bail!("Authenticator finalization was unsuccessful. You may have entered the wrong confirm code in the previous step. Try again.");

View file

@ -1,6 +1,6 @@
[package]
name = "steamguard"
version = "0.13.0"
version = "0.14.0"
authors = ["Carson McManus <carson.mcmanus1@gmail.com>"]
edition = "2021"
description = "Library for generating 2fa codes for Steam and responding to mobile confirmations."
@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
anyhow = "^1.0"
sha1 = "^0.10"
base64 = "^0.22.1"
reqwest = { version = "0.11", default-features = false, features = [
reqwest = { version = "0.12", default-features = false, features = [
"blocking",
"json",
"cookies",
@ -24,12 +24,11 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rsa = "0.9.2"
rand = "0.8.4"
cookie = "0.14"
cookie = "0.18"
regex = "1"
lazy_static = "1.4.0"
uuid = { version = "0.8", features = ["v4"] }
uuid = { version = "1.8", features = ["v4"] }
log = "0.4.19"
scraper = "0.12.0"
maplit = "1.0.2"
thiserror = "1.0.26"
secrecy = { version = "0.8", features = ["serde"] }

View file

@ -137,10 +137,7 @@ where
let mut req = CTwoFactor_Status_Request::new();
req.set_steamid(account.steam_id);
let resp = self
.client
.query_status(req, self.tokens.access_token())
.unwrap();
let resp = self.client.query_status(req, self.tokens.access_token())?;
Ok(resp.into_response_data())
}

View file

@ -1,6 +1,7 @@
use serde::Deserialize;
#[derive(Debug, Clone, Deserialize)]
#[allow(dead_code)]
pub struct OAuthData {
pub oauth_token: String,
pub steamid: String,