[libsoup/gnome-2-30] added PRAGMA secure_delete =1 to overwite deleted cookies with zeros



commit ceae66ba902ecf472fa9b069068a49518b5c02b7
Author: Lukasz Slachciak <l slachciak samsung com>
Date:   Thu Apr 8 15:13:59 2010 +0200

    added PRAGMA secure_delete =1 to overwite deleted cookies with zeros
    
    https://bugzilla.gnome.org/show_bug.cgi?id=615711

 libsoup/soup-cookie-jar-sqlite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-cookie-jar-sqlite.c b/libsoup/soup-cookie-jar-sqlite.c
index 8114f17..2870e5e 100644
--- a/libsoup/soup-cookie-jar-sqlite.c
+++ b/libsoup/soup-cookie-jar-sqlite.c
@@ -273,7 +273,7 @@ open_db (SoupCookieJar *jar)
 		return TRUE;
 	}
 
-	if (sqlite3_exec (priv->db, "PRAGMA synchronous = OFF", NULL, NULL, &error)) {
+	if (sqlite3_exec (priv->db, "PRAGMA synchronous = OFF; PRAGMA secure_delete = 1;", NULL, NULL, &error)) {
 		g_warning ("Failed to execute query: %s", error);
 		sqlite3_free (error);
 	}



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