[epiphany/wip/ephy-sync: 35/86] crypto: fix bad MAC issue



commit 154896aa9cf5a904f24d709af5f2f7d869b25ad2
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Thu Jul 7 18:42:42 2016 +0300

    crypto: fix bad MAC issue

 src/ephy-sync-crypto.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-sync-crypto.c b/src/ephy-sync-crypto.c
index 8e482df..64e560d 100644
--- a/src/ephy-sync-crypto.c
+++ b/src/ephy-sync-crypto.c
@@ -154,6 +154,7 @@ normalize_string (const gchar                 *mac_type,
   normalized = g_strjoin ("\n",
                           info,
                           artifacts->ts,
+                          artifacts->nonce,
                           method,
                           artifacts->resource,
                           host,
@@ -170,7 +171,8 @@ normalize_string (const gchar                 *mac_type,
   tmp = normalized;
   normalized = g_strconcat (normalized, "\n",
                             n_ext ? n_ext : "", "\n",
-                            artifacts->app ? artifacts->app : "", "\n",
+                            artifacts->app ? artifacts->app : "",
+                            artifacts->app ? "\n" : "",
                             artifacts->app && artifacts->dlg ? artifacts->dlg : "",
                             artifacts->app && artifacts->dlg ? "\n" : "",
                             NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]