diff options
| author | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
| commit | 8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch) | |
| tree | a8b359e59196be5b2e3862bed189107f4bc9975f /src/crypto/privkey.c | |
| parent | Merge branch 'master' into openslx (diff) | |
| parent | [prefix] Make unlzma.S compatible with 386 class CPUs (diff) | |
| download | ipxe-openslx.tar.gz ipxe-openslx.tar.xz ipxe-openslx.zip | |
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/crypto/privkey.c')
| -rw-r--r-- | src/crypto/privkey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crypto/privkey.c b/src/crypto/privkey.c index c15edf130..c67a4400b 100644 --- a/src/crypto/privkey.c +++ b/src/crypto/privkey.c @@ -22,6 +22,7 @@ */ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); +FILE_SECBOOT ( PERMITTED ); #include <stdint.h> #include <stdlib.h> @@ -53,7 +54,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); /* Raw private key data */ extern char private_key_data[]; -extern char private_key_len[]; +extern size_t ABS_SYMBOL ( private_key_len ); __asm__ ( ".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" #ifdef PRIVATE_KEY @@ -68,7 +69,7 @@ struct private_key private_key = { .refcnt = REF_INIT ( ref_no_free ), .builder = { .data = private_key_data, - .len = ( ( size_t ) private_key_len ), + .len = ABS_VALUE_INIT ( private_key_len ), }, }; |
