From ab2b62982be3224e921eead9c232f82c50567cd8 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 14 Nov 2008 20:41:40 +0100 Subject: Password reset support --- unrar/unrar.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'unrar') diff --git a/unrar/unrar.c b/unrar/unrar.c index 22d5497..b1282e7 100644 --- a/unrar/unrar.c +++ b/unrar/unrar.c @@ -1,5 +1,5 @@ /* UNRAR plugin for Tux Commander - * version 0.3.2, designed for unrar v3.8.2 + * version 0.3.3, designed for unrar v3.8.2 * Copyright (C) 2008 Tomas Bzatek * Check for updates on tuxcmd.sourceforge.net * @@ -55,8 +55,8 @@ enum HOST_SYSTEM { }; -#define VERSION "0.3.2" -#define BUILD_DATE "2008-10-28" +#define VERSION "0.3.3" +#define BUILD_DATE "2008-11-14" #define DEFAULT_BLOCK_SIZE 65536 @@ -479,6 +479,14 @@ int VFSGetPasswordRequired(struct TVFSGlobs *globs) return FALSE; } +void VFSResetPassword(struct TVFSGlobs *globs) +{ + if (globs && globs->password) { + g_free (globs->password); + globs->password = NULL; + } +} + /******************************************************************************************************/ -- cgit v1.2.3