diff options
author | tb <> | 2024-01-04 17:38:36 +0000 |
---|---|---|
committer | tb <> | 2024-01-04 17:38:36 +0000 |
commit | f2a7290c2bb7399b90fac477d310553dc6fdf435 (patch) | |
tree | 0099e9b3077e473a202c464efd1bf63a3d98814a /src/lib/libcrypto/evp/e_sm4.c | |
parent | 258a2014e5e6da7d7bc8516cdeb2ebb5a5c9d042 (diff) | |
download | openbsd-f2a7290c2bb7399b90fac477d310553dc6fdf435.tar.gz openbsd-f2a7290c2bb7399b90fac477d310553dc6fdf435.tar.bz2 openbsd-f2a7290c2bb7399b90fac477d310553dc6fdf435.zip |
Remove unused app_data from EVP_CIPHER
The EVP_CIPHER structs are static const data that the library returns when
you call EVP_aes_128_cbc(), for example. It makes no sense whatsoever to
hang user data off such a struct, but it's been there since forever.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/e_sm4.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_sm4.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libcrypto/evp/e_sm4.c b/src/lib/libcrypto/evp/e_sm4.c index 9db45a87f6..85b4d3ca04 100644 --- a/src/lib/libcrypto/evp/e_sm4.c +++ b/src/lib/libcrypto/evp/e_sm4.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_sm4.c,v 1.11 2024/01/02 19:54:43 tb Exp $ */ | 1 | /* $OpenBSD: e_sm4.c,v 1.12 2024/01/04 17:38:36 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
4 | * | 4 | * |
@@ -157,7 +157,6 @@ static const EVP_CIPHER sm4_cbc = { | |||
157 | .set_asn1_parameters = NULL, | 157 | .set_asn1_parameters = NULL, |
158 | .get_asn1_parameters = NULL, | 158 | .get_asn1_parameters = NULL, |
159 | .ctrl = NULL, | 159 | .ctrl = NULL, |
160 | .app_data = NULL, | ||
161 | }; | 160 | }; |
162 | 161 | ||
163 | const EVP_CIPHER * | 162 | const EVP_CIPHER * |
@@ -179,7 +178,6 @@ static const EVP_CIPHER sm4_cfb128 = { | |||
179 | .set_asn1_parameters = NULL, | 178 | .set_asn1_parameters = NULL, |
180 | .get_asn1_parameters = NULL, | 179 | .get_asn1_parameters = NULL, |
181 | .ctrl = NULL, | 180 | .ctrl = NULL, |
182 | .app_data = NULL, | ||
183 | }; | 181 | }; |
184 | 182 | ||
185 | const EVP_CIPHER * | 183 | const EVP_CIPHER * |
@@ -201,7 +199,6 @@ static const EVP_CIPHER sm4_ofb = { | |||
201 | .set_asn1_parameters = NULL, | 199 | .set_asn1_parameters = NULL, |
202 | .get_asn1_parameters = NULL, | 200 | .get_asn1_parameters = NULL, |
203 | .ctrl = NULL, | 201 | .ctrl = NULL, |
204 | .app_data = NULL, | ||
205 | }; | 202 | }; |
206 | 203 | ||
207 | const EVP_CIPHER * | 204 | const EVP_CIPHER * |
@@ -223,7 +220,6 @@ static const EVP_CIPHER sm4_ecb = { | |||
223 | .set_asn1_parameters = NULL, | 220 | .set_asn1_parameters = NULL, |
224 | .get_asn1_parameters = NULL, | 221 | .get_asn1_parameters = NULL, |
225 | .ctrl = NULL, | 222 | .ctrl = NULL, |
226 | .app_data = NULL, | ||
227 | }; | 223 | }; |
228 | 224 | ||
229 | const EVP_CIPHER * | 225 | const EVP_CIPHER * |
@@ -256,7 +252,6 @@ static const EVP_CIPHER sm4_ctr_mode = { | |||
256 | .set_asn1_parameters = NULL, | 252 | .set_asn1_parameters = NULL, |
257 | .get_asn1_parameters = NULL, | 253 | .get_asn1_parameters = NULL, |
258 | .ctrl = NULL, | 254 | .ctrl = NULL, |
259 | .app_data = NULL, | ||
260 | }; | 255 | }; |
261 | 256 | ||
262 | const EVP_CIPHER * | 257 | const EVP_CIPHER * |