summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/e_null.c
diff options
context:
space:
mode:
authortb <>2024-01-07 15:42:57 +0000
committertb <>2024-01-07 15:42:57 +0000
commit8fa897fcd99c8c7e54dbf8fb8c21cb613997d5fb (patch)
tree968618b07754dd69ed33255d1984737459fd7ff1 /src/lib/libcrypto/evp/e_null.c
parent8cb170b1f4aa3af43ce874bfe6b6516969e9d657 (diff)
downloadopenbsd-8fa897fcd99c8c7e54dbf8fb8c21cb613997d5fb.tar.gz
openbsd-8fa897fcd99c8c7e54dbf8fb8c21cb613997d5fb.tar.bz2
openbsd-8fa897fcd99c8c7e54dbf8fb8c21cb613997d5fb.zip
Convert the remaining legacy ciphers to C99 initializers
No change in the generated aarch64 assembly apart from line number changes. ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/e_null.c')
-rw-r--r--src/lib/libcrypto/evp/e_null.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/lib/libcrypto/evp/e_null.c b/src/lib/libcrypto/evp/e_null.c
index d3364de1c5..be46c1ccac 100644
--- a/src/lib/libcrypto/evp/e_null.c
+++ b/src/lib/libcrypto/evp/e_null.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: e_null.c,v 1.19 2024/01/04 17:38:36 tb Exp $ */ 1/* $OpenBSD: e_null.c,v 1.20 2024/01/07 15:42:57 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -70,16 +70,18 @@ static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
70 const unsigned char *in, size_t inl); 70 const unsigned char *in, size_t inl);
71 71
72static const EVP_CIPHER n_cipher = { 72static const EVP_CIPHER n_cipher = {
73 NID_undef, 73 .nid = NID_undef,
74 1, 0, 0, 74 .block_size = 1,
75 0, 75 .key_len = 0,
76 null_init_key, 76 .iv_len = 0,
77 null_cipher, 77 .flags = 0,
78 NULL, 78 .init = null_init_key,
79 0, 79 .do_cipher = null_cipher,
80 NULL, 80 .cleanup = NULL,
81 NULL, 81 .ctx_size = 0,
82 NULL, 82 .set_asn1_parameters = NULL,
83 .get_asn1_parameters = NULL,
84 .ctrl = NULL,
83}; 85};
84 86
85const EVP_CIPHER * 87const EVP_CIPHER *