Skip to content

Commit

Permalink
libsexpp update (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jun 3, 2024
1 parent 7448831 commit 3366003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librekey/key_store_g10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ gnupg_sexp_t::add_mpi(const std::string &name, const pgp_mpi_t &mpi)
if (idx < len) {
if (mpi.mpi[idx] & 0x80) {
data.append(0);
data.std::basic_string<uint8_t>::append(mpi.mpi + idx, len - idx);
data.append(mpi.mpi + idx, len - idx);
} else {
data.assign(mpi.mpi + idx, mpi.mpi + len);
}
Expand Down Expand Up @@ -805,7 +805,7 @@ g23_parse_seckey(pgp_key_pkt_t &seckey,
return false;
}

auto & alg_bt = alg_s_exp->sexp_string_at(0)->get_string();
auto & alg_bt = alg_s_exp->sexp_string_at(0)->get_string().as_string();
pgp_pubkey_alg_t alg = static_cast<pgp_pubkey_alg_t>(
id_str_pair::lookup(g10_alg_aliases, alg_bt.c_str(), PGP_PKA_NOTHING));
if (alg == PGP_PKA_NOTHING) {
Expand Down

0 comments on commit 3366003

Please sign in to comment.