]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
providers/implementations/kdfs/argon2.c: Include openssl/e_os2.h instead of stdint.h
authorRichard Levitte <levitte@openssl.org>
Fri, 17 Mar 2023 15:56:11 +0000 (16:56 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 17 Mar 2023 15:56:11 +0000 (16:56 +0100)
<stdint.h> may not exist with pre-C99 compilers.  <openssl/e_os2.h> deals
with that, so include it instead.

Similarly, include "internal/numbers.h" rather than <limits.h>, to deal
with things that may be lacking in the latter.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20537)

providers/implementations/kdfs/argon2.c

index 034c7e3003a158bcf6cf0eb3cb3d103a54baba00..89947472c05a91c3c543b72d870a39b58065128a 100644 (file)
 
 #include <stdlib.h>
 #include <stddef.h>
-#include <stdint.h>
 #include <stdarg.h>
-#include <limits.h>
 #include <string.h>
-#include <crypto/evp.h>
+#include <openssl/e_os2.h>
 #include <openssl/evp.h>
 #include <openssl/objects.h>
 #include <openssl/crypto.h>
 #include <openssl/core_names.h>
 #include <openssl/params.h>
 #include <openssl/thread.h>
+#include <openssl/proverr.h>
 #include "internal/thread.h"
 #include "internal/numbers.h"
 #include "internal/endian.h"
+#include "crypto/evp.h"
 #include "prov/implementations.h"
-#include <openssl/proverr.h>
 #include "prov/provider_ctx.h"
 #include "prov/providercommon.h"
 #include "prov/blake2.h"