VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms
AgeCommit message (Collapse)AuthorFilesLines
2016-10-17Linux/MacOSX: add missing check for PIM max value on volume creation wizardMounir IDRASSI1-1/+2
2016-08-15Linux/MacOSX: Add help text for GOST89 and KuznyechikMounir IDRASSI1-0/+4
2016-06-02Crypto: Add support for Japanese encryption standard Camellia, including for ↵Mounir IDRASSI1-0/+2
system encryption.
2016-05-13Linux: Fix gcc-6 compilation errors.Mounir IDRASSI1-2/+2
2016-05-10Remove trailing whitespaceDavid Foerster66-1732/+1732
2016-05-10Normalize all line terminators<
/*
  zip_discard.c -- discard and free struct zip
  Copyright (C) 1999-2017 Dieter Baron and Thomas Klausner

  This file is part of libzip, a library to manipulate ZIP archives.
  The authors can be contacted at <libzip@nih.at>

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
  are met:
  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in
     the documentation and/or other materials provided with the
     distribution.
  3. The names of the authors may not be used to endorse or promote
     products derived from this software without specific prior
     written permission.

  THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


#include <stdlib.h>

#include "zipint.h"


/* zip_discard:
   frees the space allocated to a zipfile struct, and closes the
   corresponding file. */

void
zip_discard(zip_t *za) {
    zip_uint64_t i;

    if (za == NULL)
	return;

    if (za->src) {
	zip_source_close(za->src);
	zip_source_free(za->src);
    }

    free(za->default_password);
    _zip_string_free(za->comment_orig);
    _zip_string_free(za->comment_changes);

    _zip_hash_free(za->names);

    if (za->entry) {
	for (i = 0; i < za->nentry; i++)
	    _zip_entry_finalize(za->entry + i);
	free(za->entry);
    }

    for (i = 0; i < za->nopen_source; i++) {
	_zip_source_invalidate(za->open_source[i]);
    }
    free(za->open_source);

    _zip_progress_free(za->progress);

    zip_error_fini(&za->error);

    free(za);

    return;
}
ss='logmsg'> 2015-06-24Linux/MacOSX: first dynamic mode implementationMounir IDRASSI11-33/+403 2015-04-19Linux: Correct wxWidgets assert warnings when displaying about/LegalNotice ↵Mounir IDRASSI2-4/+2 dialogs. This didn't happen with official binaries because the library used disables asserts. 2015-04-06Linux/MaxOSX: correctly detect type of internal exceptionsMounir IDRASSI1-4/+4 2015-04-06MacOSX: solve issue volumes not auto-dismounting when quitting VeraCrypt. ↵Mounir IDRASSI2-2/+63 restore main VeraCrypt window if is in background when we need to display various dialogs 2015-04-05Linux/MacOSX: correctly handle some internal exception classes that were ↵Mounir IDRASSI1-0/+4 missed by the WaitDialog class. 2015-02-28Linux/MacOSX: A configuration option for default hash and default TrueCrypt ↵Mounir IDRASSI7-6/+385 mode used for mounting volumes (Menu Settings -> Default Mount Parameters). Implement priority of command line arguments over default values. 2015-02-27Linux/MacOSX: Modify wxFormBuilder generated files directly to solve the 'X' ↵Mounir IDRASSI1-6/+6 icon not closing some dialog because we can't workaround wxFormBuilder bug without introducing other issues (the correct SetExtraStyle call must be present at the beginning of the constructor, so it must be present in the generated files). Each time we generated new sources, Forms.cpp must be manually modify it to keep this correction. 2015-02-27Revert "Linux/MacOSX: solve the 'X' icon not closing some dialog. This was ↵Mounir IDRASSI8-14/+14 caused by a bug of wxFormBuilder that calls SetExtraStyle without taking care of the previous value." This reverts commit 400fd599f812b057b0674f2ae0e0141e7c35a332. 2015-02-16Linux/MacOSX: solve the 'X' icon not closing some dialog. This was caused by ↵Mounir IDRASSI8-14/+14 a bug of wxFormBuilder that calls SetExtraStyle without taking care of the previous value. 2015-02-13Linux: Perform a quick NTFS formatting by adding the "-f" switch to ↵Mounir IDRASSI1-0/+4 mkfs.ntfs. Without this, the creation of big NTFS volumes takes ages. The code already takes care of the empty sectors by encrypting them with different key to randomize plaintext. 2015-02-08Linux/MacOSX: use command line values of TrueCryptMode and PRF as defaults ↵Mounir IDRASSI6-9/+33 for the password dialog 2015-01-04Linux/MacOSX: Add wait dialog to the benchmark computation. Correct handling ↵Mounir IDRASSI4-22/+42 of wait dialog call when changing password and creating volumes. 2015-01-04Linux/MacOSX: make the cancel button work on the preferences dialog.Mounir IDRASSI1-1/+1 2015-01-04Linux/MacOSX: change cascade encryption naming format in the UI as it was ↵Mounir IDRASSI3-4/+4 done on Windows. 2015-01-03Linux/MacOSX: workaround for wxWidgets bug in the method ↵Mounir IDRASSI1-1/+1 wxTextEntry::IsEmpty that made it impossible to enter a one digit size for the volume. 2014-12-30Linux/MacOSX: Implement TrueCrypt conversion and loading support. Correct ↵Mounir IDRASSI13-21/+264 many GTK issues linked to multi-threaded origine of events by implementing an automatic mechanism for handling such requests in the main thread. 2014-12-28Linux/MacOSX: Add possibility to choose 1-pass wipe mode without changing ↵Mounir IDRASSI2-4/+4 the default wipe mode (3-pass). 2014-12-26Linux/MacOSX: Implement waiting dialog for lengthy operations in order to ↵Mounir IDRASSI10-9/+530 have a better user experience. 2014-12-20Linux/MacOSX: Add a donation menu entryMounir IDRASSI4-0/+23 2014-12-19Linux/MacOSX: Enhance performance by implementing the possibility to choose ↵Mounir IDRASSI8-11/+22 the correct hash algorithm of volumes during various operations (mount, change password...), both using the GUI and the command line. 2014-12-11Linux/macOSX: always display random gathering dialog/interface before ↵Mounir IDRASSI1-0/+2 performing sensitive operations that needs good quality random. 2014-12-11Linux/MacOSX: Implement generating more than one keyfile, specifying the ↵Mounir IDRASSI5-11/+947 size of the generated keyfiles and letting VeraCrypt choose random size values.