]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
bio_ok.c: Fixed undefined identifier 'SIZE_MAX'
authorLars Erik Wik <lars.erik.wik@northern.tech>
Wed, 8 Oct 2025 15:06:39 +0000 (17:06 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 19 Nov 2025 14:59:39 +0000 (15:59 +0100)
This fixes the following compilation error on HP-UX:
```
11:07:19 crypto/evp/bio_ok.c: In function 'block_in':
11:07:19 crypto/evp/bio_ok.c:579: error: 'SIZE_MAX' undeclared (first use in this function)
11:07:19 crypto/evp/bio_ok.c:579: error: (Each undeclared identifier is reported only once
11:07:19 crypto/evp/bio_ok.c:579: error: for each function it appears in.)
```

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
CLA: trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28793)

crypto/evp/bio_ok.c

index ec3664b406610f9b0fd8a134a84b8bea94121ad9..7bb8a48c82eb3123c099383bab9d9a11212f3887 100644 (file)
@@ -77,6 +77,7 @@
 #include <openssl/evp.h>
 #include <openssl/rand.h>
 #include "internal/endian.h"
+#include "internal/numbers.h"   /* includes SIZE_MAX */
 #include "crypto/evp.h"
 
 static int ok_write(BIO *h, const char *buf, int num);