49 #define ALLOW_KEY_OVERRIDE 0 51 #define ALLOW_KEY_OVERRIDE 1 58 "\nprivate_key_data:\n\t" 60 ".incbin \"" PRIVATE_KEY
"\"\n\t" 62 ".size private_key_data, ( . - private_key_data )\n\t" 63 ".equ private_key_len, ( . - private_key_data )\n\t" 84 .description =
"Private key",
86 .type = &setting_type_hex,
108 static void *key_data =
NULL;
123 &key_data ) ) >= 0 ) {
132 ( key_data ?
"external" :
"built-in" ) );
Dynamic Host Configuration Protocol.
int fetch_raw_setting_copy(struct settings *settings, const struct setting *setting, void **data)
Fetch value of setting.
const void * data
Start of data.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void privkey_free(struct refcnt *refcnt)
Free private key.
struct asn1_builder builder
ASN.1 object builder.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
struct settings_applicator privkey_applicator __settings_applicator
Private key settings applicator.
#define container_of(ptr, type, field)
Get containing structure.
static struct asn1_cursor default_private_key
Default private key.
static void(* free)(struct refcnt *refcnt))
static struct setting privkey_setting __setting(SETTING_CRYPTO, privkey)
Private key setting.
#define ALLOW_KEY_OVERRIDE
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
struct refcnt refcnt
Reference counter.
#define REF_INIT(free_fn)
Initialise a static reference counter.
int(* apply)(void)
Apply updated settings.
#define DHCP_EB_KEY
Client private key.
#define SETTING_CRYPTO
Cryptography settings.
static int privkey_apply_settings(void)
Apply private key configuration settings.
void ref_no_free(struct refcnt *refcnt __unused)
Do not free reference-counted object.
#define NULL
NULL pointer (VOID *)
size_t len
Length of data.