X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=common%2Fupdate.c;h=cc830a78657caaca7341a5c4ca20b06891186721;hp=5b1a064c29cba71d2337504eb30fd0a6811d8ecd;hb=1cd4b6253eab13c5cea7fae5e217bbd28fef15a0;hpb=e3f279fb1419b7cb5fd4d0e18e52a892770cf934 diff --git a/common/update.c b/common/update.c index 5b1a064c29..cc830a7865 100644 --- a/common/update.c +++ b/common/update.c @@ -4,24 +4,7 @@ * Written by: Rafal Czubak * Bartlomiej Sieka * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -37,6 +20,7 @@ #include #include #include +#include #include /* env variable holding the location of the update file */ @@ -296,7 +280,7 @@ got_update_file: printf("Processing update '%s' :", fit_get_name(fit, noffset, NULL)); - if (!fit_image_check_hashes(fit, noffset)) { + if (!fit_image_verify(fit, noffset)) { printf("Error: invalid update hash, aborting\n"); ret = 1; goto next_node;