.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2011 Nokia Corporation |
---|
3 | 4 | * Copyright (C) 2011 Intel Corporation |
---|
.. | .. |
---|
5 | 6 | * Author: |
---|
6 | 7 | * Dmitry Kasatkin <dmitry.kasatkin@nokia.com> |
---|
7 | 8 | * <dmitry.kasatkin@intel.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation, version 2 of the License. |
---|
12 | | - * |
---|
13 | 9 | */ |
---|
14 | 10 | |
---|
15 | 11 | #ifndef _DIGSIG_H |
---|
.. | .. |
---|
33 | 29 | uint32_t timestamp; /* key made, always 0 for now */ |
---|
34 | 30 | uint8_t algo; |
---|
35 | 31 | uint8_t nmpi; |
---|
36 | | - char mpi[0]; |
---|
| 32 | + char mpi[]; |
---|
37 | 33 | } __packed; |
---|
38 | 34 | |
---|
39 | 35 | struct signature_hdr { |
---|
.. | .. |
---|
43 | 39 | uint8_t hash; |
---|
44 | 40 | uint8_t keyid[8]; |
---|
45 | 41 | uint8_t nmpi; |
---|
46 | | - char mpi[0]; |
---|
| 42 | + char mpi[]; |
---|
47 | 43 | } __packed; |
---|
48 | 44 | |
---|
49 | 45 | #if defined(CONFIG_SIGNATURE) || defined(CONFIG_SIGNATURE_MODULE) |
---|