diff options
| author | tb <> | 2024-01-07 15:42:57 +0000 |
|---|---|---|
| committer | tb <> | 2024-01-07 15:42:57 +0000 |
| commit | c0b3ae168d37cd76986e12649d675f42f46cdfc3 (patch) | |
| tree | 968618b07754dd69ed33255d1984737459fd7ff1 /src/lib/libcrypto/evp/e_null.c | |
| parent | 126e387ca0e4e0928cfa8f76cc4647a7bf754e4d (diff) | |
| download | openbsd-c0b3ae168d37cd76986e12649d675f42f46cdfc3.tar.gz openbsd-c0b3ae168d37cd76986e12649d675f42f46cdfc3.tar.bz2 openbsd-c0b3ae168d37cd76986e12649d675f42f46cdfc3.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.c | 24 |
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 | ||
| 72 | static const EVP_CIPHER n_cipher = { | 72 | static 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 | ||
| 85 | const EVP_CIPHER * | 87 | const EVP_CIPHER * |
