]> 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 15:00:23 +0000 (16:00 +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)

(cherry picked from commit 695a5aaf0bb04bc2f2d395987f121c1ec41d3b3e)

crypto/evp/bio_ok.c

index 0129fe49461925926b45b81867dae1de31293605..bd44d27a707767b64c0bef4f2454033115413222 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);