#include <vlc_strings.h>
#include <vlc_charset.h>
#include <vlc_interface.h>
+#include <vlc_dialog.h>
#include <gcrypt.h>
#include <vlc_gcrypt.h>
if( !p_file )
{
msg_Err( p_udt, "Failed to open %s for writing", psz_destfile );
- intf_UserFatal( p_udt, true, _("Saving file failed"),
+ dialog_FatalWait( p_udt, _("Saving file failed"),
_("Failed to open \"%s\" for writing"),
psz_destfile );
goto end;
{
utf8_unlink( psz_destfile );
- intf_UserFatal( p_udt, true, _("File could not be verified"),
+ dialog_FatalWait( p_udt, _("File could not be verified"),
_("It was not possible to download a cryptographic signature for "
"the downloaded file \"%s\". Thus, it was deleted."),
psz_destfile );
{
utf8_unlink( psz_destfile );
msg_Err( p_udt, "Invalid signature issuer" );
- intf_UserFatal( p_udt, true, _("Invalid signature"),
+ dialog_FatalWait( p_udt, _("Invalid signature"),
_("The cryptographic signature for the downloaded file \"%s\" was "
"invalid and could not be used to securely verify it. Thus, the "
"file was deleted."),
{
utf8_unlink( psz_destfile );
msg_Err( p_udt, "Invalid signature type" );
- intf_UserFatal( p_udt, true, _("Invalid signature"),
+ dialog_FatalWait( p_udt, _("Invalid signature"),
_("The cryptographic signature for the downloaded file \"%s\" was "
"invalid and could not be used to securely verify it. Thus, the "
"file was deleted."),
{
msg_Err( p_udt, "Unable to hash %s", psz_destfile );
utf8_unlink( psz_destfile );
- intf_UserFatal( p_udt, true, _("File not verifiable"),
+ dialog_FatalWait( p_udt, _("File not verifiable"),
_("It was not possible to securely verify the downloaded file"
" \"%s\". Thus, it was deleted."),
psz_destfile );
p_hash[1] != sign.hash_verification[1] )
{
utf8_unlink( psz_destfile );
- intf_UserFatal( p_udt, true, _("File corrupted"),
+ dialog_FatalWait( p_udt, _("File corrupted"),
_("Downloaded file \"%s\" was corrupted. Thus, it was deleted."),
psz_destfile );
msg_Err( p_udt, "Bad SHA1 hash for %s", psz_destfile );
!= VLC_SUCCESS )
{
utf8_unlink( psz_destfile );
- intf_UserFatal( p_udt, true, _("File corrupted"),
+ dialog_FatalWait( p_udt, _("File corrupted"),
_("Downloaded file \"%s\" was corrupted. Thus, it was deleted."),
psz_destfile );
msg_Err( p_udt, "BAD SIGNATURE for %s", psz_destfile );