diff options
| author | tb <> | 2024-01-04 17:38:36 +0000 |
|---|---|---|
| committer | tb <> | 2024-01-04 17:38:36 +0000 |
| commit | ffc98932e7dd8da47a52971639e2eb8ada5f7097 (patch) | |
| tree | 0099e9b3077e473a202c464efd1bf63a3d98814a /src/lib/libcrypto/evp/e_des.c | |
| parent | 744f9b9df3bd01a4f216013bf31f8d1151043177 (diff) | |
| download | openbsd-ffc98932e7dd8da47a52971639e2eb8ada5f7097.tar.gz openbsd-ffc98932e7dd8da47a52971639e2eb8ada5f7097.tar.bz2 openbsd-ffc98932e7dd8da47a52971639e2eb8ada5f7097.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_des.c')
| -rw-r--r-- | src/lib/libcrypto/evp/e_des.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/evp/e_des.c b/src/lib/libcrypto/evp/e_des.c index 64d098ca14..7a0b24c1ab 100644 --- a/src/lib/libcrypto/evp/e_des.c +++ b/src/lib/libcrypto/evp/e_des.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_des.c,v 1.22 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_des.c,v 1.23 2024/01/04 17:38:36 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 | * |
| @@ -234,7 +234,6 @@ static const EVP_CIPHER des_cbc = { | |||
| 234 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 234 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 235 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 235 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 236 | .ctrl = des_ctrl, | 236 | .ctrl = des_ctrl, |
| 237 | .app_data = NULL, | ||
| 238 | }; | 237 | }; |
| 239 | 238 | ||
| 240 | const EVP_CIPHER * | 239 | const EVP_CIPHER * |
| @@ -256,7 +255,6 @@ static const EVP_CIPHER des_cfb64 = { | |||
| 256 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 255 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 257 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 256 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 258 | .ctrl = des_ctrl, | 257 | .ctrl = des_ctrl, |
| 259 | .app_data = NULL, | ||
| 260 | }; | 258 | }; |
| 261 | 259 | ||
| 262 | const EVP_CIPHER * | 260 | const EVP_CIPHER * |
| @@ -278,7 +276,6 @@ static const EVP_CIPHER des_ofb = { | |||
| 278 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 276 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 279 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 277 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 280 | .ctrl = des_ctrl, | 278 | .ctrl = des_ctrl, |
| 281 | .app_data = NULL, | ||
| 282 | }; | 279 | }; |
| 283 | 280 | ||
| 284 | const EVP_CIPHER * | 281 | const EVP_CIPHER * |
| @@ -300,7 +297,6 @@ static const EVP_CIPHER des_ecb = { | |||
| 300 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 297 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 301 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 298 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 302 | .ctrl = des_ctrl, | 299 | .ctrl = des_ctrl, |
| 303 | .app_data = NULL, | ||
| 304 | }; | 300 | }; |
| 305 | 301 | ||
| 306 | const EVP_CIPHER * | 302 | const EVP_CIPHER * |
| @@ -322,7 +318,6 @@ static const EVP_CIPHER des_cfb1 = { | |||
| 322 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 318 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 323 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 319 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 324 | .ctrl = des_ctrl, | 320 | .ctrl = des_ctrl, |
| 325 | .app_data = NULL, | ||
| 326 | }; | 321 | }; |
| 327 | 322 | ||
| 328 | const EVP_CIPHER * | 323 | const EVP_CIPHER * |
| @@ -344,7 +339,6 @@ static const EVP_CIPHER des_cfb8 = { | |||
| 344 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 339 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 345 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 340 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 346 | .ctrl = des_ctrl, | 341 | .ctrl = des_ctrl, |
| 347 | .app_data = NULL, | ||
| 348 | }; | 342 | }; |
| 349 | 343 | ||
| 350 | const EVP_CIPHER * | 344 | const EVP_CIPHER * |
