diff options
| author | tb <> | 2022-01-09 23:55:31 +0000 |
|---|---|---|
| committer | tb <> | 2022-01-09 23:55:31 +0000 |
| commit | 60cf6dd35cd48616cedc69e4a83a092d8eaf0c86 (patch) | |
| tree | 706d1ac3a1e49388fcc6d7ee3ede2dd24bfdb6a1 /src | |
| parent | bf4ee03fd3bae28d5d96a9e3192342970fe0f9be (diff) | |
| download | openbsd-60cf6dd35cd48616cedc69e4a83a092d8eaf0c86.tar.gz openbsd-60cf6dd35cd48616cedc69e4a83a092d8eaf0c86.tar.bz2 openbsd-60cf6dd35cd48616cedc69e4a83a092d8eaf0c86.zip | |
Use C99 initializers for test_sha_md
ok inoguchi jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/engine/eng_openssl.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/lib/libcrypto/engine/eng_openssl.c b/src/lib/libcrypto/engine/eng_openssl.c index 8bc508f7a4..1a6113ba6d 100644 --- a/src/lib/libcrypto/engine/eng_openssl.c +++ b/src/lib/libcrypto/engine/eng_openssl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: eng_openssl.c,v 1.14 2021/12/12 21:30:13 tb Exp $ */ | 1 | /* $OpenBSD: eng_openssl.c,v 1.15 2022/01/09 23:55:31 tb Exp $ */ |
| 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -351,18 +351,17 @@ test_sha1_final(EVP_MD_CTX *ctx, unsigned char *md) | |||
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | static const EVP_MD test_sha_md = { | 353 | static const EVP_MD test_sha_md = { |
| 354 | NID_sha1, | 354 | .type = NID_sha1, |
| 355 | NID_sha1WithRSAEncryption, | 355 | .pkey_type = NID_sha1WithRSAEncryption, |
| 356 | SHA_DIGEST_LENGTH, | 356 | .md_size = SHA_DIGEST_LENGTH, |
| 357 | 0, | 357 | .flags = 0, |
| 358 | test_sha1_init, | 358 | .init = test_sha1_init, |
| 359 | test_sha1_update, | 359 | .update = test_sha1_update, |
| 360 | test_sha1_final, | 360 | .final = test_sha1_final, |
| 361 | NULL, | 361 | .copy = NULL, |
| 362 | NULL, | 362 | .cleanup = NULL, |
| 363 | EVP_PKEY_RSA_method, | 363 | .block_size = SHA_CBLOCK, |
| 364 | SHA_CBLOCK, | 364 | .ctx_size = sizeof(EVP_MD *) + sizeof(SHA_CTX), |
| 365 | sizeof(EVP_MD *) + sizeof(SHA_CTX), | ||
| 366 | }; | 365 | }; |
| 367 | 366 | ||
| 368 | static int | 367 | static int |
