Skip to content

Commit

Permalink
Merge pull request #298 from paolostivanin/fix296
Browse files Browse the repository at this point in the history
Fix importing Aegis plain json
  • Loading branch information
paolostivanin authored Jun 14, 2023
2 parents 8f92e50 + 689b3dd commit a8d0a17
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(OTPClient VERSION "3.1.7" LANGUAGES "C")
project(OTPClient VERSION "3.1.8" LANGUAGES "C")
include(GNUInstallDirs)

configure_file("src/common/version.h.in" "version.h")
Expand Down
8 changes: 8 additions & 0 deletions data/com.github.paolostivanin.OTPClient.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@
</content_rating>

<releases>
<release version="3.1.8" date="2023-06-14">
<description>
<p>OTPClient 3.1.8 brings a single fix</p>
<ul>
<li>Fix importing Aegis plain json</li>
</ul>
</description>
</release>
<release version="3.1.7" date="2023-05-26">
<description>
<p>OTPClient 3.1.7 brings many fixes</p>
Expand Down
4 changes: 3 additions & 1 deletion src/common/aegis.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ get_otps_from_plain_backup (const gchar *path,
return NULL;
}

GSList *otps = parse_json_data (json_string_value (json_object_get (json, "db")), err);
gchar *dumped_json = json_dumps(json_object_get (json, "db"), 0);
GSList *otps = parse_json_data (dumped_json, err);
gcry_free (dumped_json);

return otps;
}
Expand Down

0 comments on commit a8d0a17

Please sign in to comment.