sha256: fix symbol collision between nettle (GnuTLS) and OpenSSL codepath

Fixes:
```
C:\vcpkg\installed\x64-windows\include\nettle\sha2.h(75,8): error C2011: 'sha256_ctx': 'struct' type redefinition
```
Ref: https://github.com/curl/curl/actions/runs/10341162641/job/28622681573?pr=14484#step:10:30

Cherry-picked from #14495
Closes #14515
This commit is contained in:
Viktor Szakats 2024-08-11 21:43:46 +02:00
parent 71d3ab5813
commit 28c12bc9be
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -100,10 +100,10 @@
#if defined(USE_OPENSSL_SHA256)
struct sha256_ctx {
struct ossl_sha256_ctx {
EVP_MD_CTX *openssl_ctx;
};
typedef struct sha256_ctx my_sha256_ctx;
typedef struct ossl_sha256_ctx my_sha256_ctx;
static CURLcode my_sha256_init(my_sha256_ctx *ctx)
{