diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-07-26 20:41:05 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-07-26 20:41:05 +0000 |
commit | d8787d4f7848bad8bd69325969806e1a76d0c3df (patch) | |
tree | e4a527273715df2fa754b500a51a64f1457bd599 /sys/opencrypto/xform_null.c | |
parent | 45cd18ec73dcd262612898bf1a263cacde17d348 (diff) | |
download | src-d8787d4f7848bad8bd69325969806e1a76d0c3df.tar.gz src-d8787d4f7848bad8bd69325969806e1a76d0c3df.zip |
crypto: Constify all transform descriptors
No functional change intended.
Reviewed by: ae, jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31196
Diffstat (limited to 'sys/opencrypto/xform_null.c')
-rw-r--r-- | sys/opencrypto/xform_null.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/opencrypto/xform_null.c b/sys/opencrypto/xform_null.c index d1b79e1385b2..6cd49baab0ac 100644 --- a/sys/opencrypto/xform_null.c +++ b/sys/opencrypto/xform_null.c @@ -62,7 +62,7 @@ static int null_update(void *, const void *, u_int); static void null_final(uint8_t *, void *); /* Encryption instances */ -struct enc_xform enc_xform_null = { +const struct enc_xform enc_xform_null = { .type = CRYPTO_NULL_CBC, .name = "NULL", /* NB: blocksize of 4 is to generate a properly aligned ESP header */ @@ -76,7 +76,7 @@ struct enc_xform enc_xform_null = { }; /* Authentication instances */ -struct auth_hash auth_hash_null = { +const struct auth_hash auth_hash_null = { .type = CRYPTO_NULL_HMAC, .name = "NULL-HMAC", .keysize = 0, |