Skip to content

Commit

Permalink
Update circleci, metadata, desktop file and update cli code.
Browse files Browse the repository at this point in the history
fixes #349
  • Loading branch information
paolostivanin committed Mar 1, 2024
1 parent 145cb3b commit 4f124ef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2.0

jobs:
ubuntu2004:
ubuntu2304:
docker:
- image: ubuntu:20.04
- image: ubuntu:23.04
steps:
- checkout
- run: apt update && DEBIAN_FRONTEND=noninteractive apt -y install git gcc clang cmake libgcrypt20-dev libgtk-3-dev libzip-dev libjansson-dev libpng-dev libzbar-dev libprotobuf-c-dev libsecret-1-dev uuid-dev libprotobuf-dev libqrencode-dev
Expand Down Expand Up @@ -50,7 +50,7 @@ workflows:
version: 2
build:
jobs:
- ubuntu2004
- ubuntu2304
- ubuntuLatestRolling
- debianLatestStable
- fedoraLatestStable
Expand Down
6 changes: 1 addition & 5 deletions data/com.github.paolostivanin.OTPClient.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<metadata_license>CC-BY-4.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>OTPClient</name>
<summary>GTK+ application for managing TOTP and HOTP tokens with built-in encryption.</summary>
<summary>Application for managing TOTP/HOTP tokens with built-in encryption</summary>

<keywords>
<keyword>otp</keyword>
Expand Down Expand Up @@ -561,8 +561,4 @@
</description>
</release>
</releases>
<custom>
<value key="Purism::form_factor">workstation</value>
<value key="Purism::form_factor">mobile</value>
</custom>
</component>
2 changes: 1 addition & 1 deletion data/com.github.paolostivanin.OTPClient.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Type=Application
Exec=otpclient
Icon=com.github.paolostivanin.OTPClient
Keywords=otp;totp;hotp;
Keywords=otp;totp;hotp;2fa
Terminal=false
Name=OTPClient
Comment=GTK+ TOTP and HOTP client
Expand Down
2 changes: 1 addition & 1 deletion src/cli/exec-action.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ gboolean exec_action (CmdlineOpts *cmdline_opts,
}
}
exported_file_path = g_build_filename (export_directory, export_pwd != NULL ? "aegis_exports.json.aes" : "aegis_exports.json", NULL);
ret_msg = export_aegis (exported_file_path, db_data->json_data, export_pwd);
ret_msg = export_aegis (exported_file_path, export_pwd, db_data->json_data);
gcry_free (export_pwd);
exported = TRUE;
}
Expand Down
6 changes: 3 additions & 3 deletions src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ get_data_from_encrypted_backup (const gchar *path,
GFileInputStream *in_stream,
GError **err)
{
gint32 salt_size, iv_size, tag_size;
gint32 salt_size = 0, iv_size = 0, tag_size = 0;
switch (provider) {
case ANDOTP:
salt_size = iv_size = ANDOTP_IV_SALT;
Expand Down Expand Up @@ -513,7 +513,7 @@ get_data_from_encrypted_backup (const gchar *path,
}

gsize enc_buf_size;
gint32 offset;
gint32 offset = 0;
switch (provider) {
case ANDOTP:
// 4 is the size of iterations (int32)
Expand Down Expand Up @@ -553,7 +553,7 @@ get_data_from_encrypted_backup (const gchar *path,
g_object_unref (in_stream);
g_object_unref (in_file);

guchar *derived_key;
guchar *derived_key = NULL;
switch (provider) {
case ANDOTP:
derived_key = get_andotp_derived_key (password, salt, andotp_be_iterations);
Expand Down

0 comments on commit 4f124ef

Please sign in to comment.