Skip to content

Commit 60ccaf3

Browse files
committed
Remove uses of stdint in api.c.
1 parent eb8f269 commit 60ccaf3

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/api.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@
146146
#endif
147147
#include <wolfssl/error-ssl.h>
148148

149-
#include <stdint.h>
150149
#include <stdlib.h>
151150
#include <wolfssl/ssl.h> /* compatibility layer */
152151
#include <wolfssl/test.h>
@@ -11244,8 +11243,8 @@ static int test_wolfSSL_UseMaxFragment(void)
1124411243
#endif
1124511244
WOLFSSL *ssl = NULL;
1124611245
#ifdef OPENSSL_EXTRA
11247-
int (*UseMaxFragment)(SSL *s, uint8_t mode);
11248-
int (*CTX_UseMaxFragment)(SSL_CTX *c, uint8_t mode);
11246+
int (*UseMaxFragment)(SSL *s, unsigned char mode);
11247+
int (*CTX_UseMaxFragment)(SSL_CTX *c, unsigned char mode);
1124911248
#else
1125011249
int (*UseMaxFragment)(WOLFSSL *s, unsigned char mode);
1125111250
int (*CTX_UseMaxFragment)(WOLFSSL_CTX *c, unsigned char mode);
@@ -45815,13 +45814,13 @@ static int test_othername_and_SID_ext(void) {
4581545814
/* SID extension. SID data format explained here:
4581645815
* https://blog.qdsecurity.se/2022/05/27/manually-injecting-a-sid-in-a-certificate/
4581745816
*/
45818-
uint8_t SidExtension[] = {
45817+
byte SidExtension[] = {
4581945818
48, 64, 160, 62, 6, 10, 43, 6, 1, 4, 1, 130, 55, 25, 2, 1, 160,
4582045819
48, 4, 46, 83, 45, 49, 45, 53, 45, 50, 49, 45, 50, 56, 52, 51, 57,
4582145820
48, 55, 52, 49, 56, 45, 51, 57, 50, 54, 50, 55, 55, 52, 50, 49, 45,
4582245821
51, 56, 49, 53, 57, 57, 51, 57, 55, 50, 45, 52, 54, 48, 49};
4582345822

45824-
uint8_t expectedAltName[] = {
45823+
byte expectedAltName[] = {
4582545824
0x30, 0x27, 0xA0, 0x25, 0x06, 0x0A, 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82,
4582645825
0x37, 0x14, 0x02, 0x03, 0xA0, 0x17, 0x0C, 0x15, 0x6F, 0x74, 0x68, 0x65,
4582745826
0x72, 0x6E, 0x61, 0x6D, 0x65, 0x40, 0x77, 0x6F, 0x6C, 0x66, 0x73, 0x73,
@@ -71563,7 +71562,7 @@ static int test_read_write_hs(void)
7156371562
WOLFSSL_CTX *ctx_s = NULL, *ctx_c = NULL;
7156471563
WOLFSSL *ssl_s = NULL, *ssl_c = NULL;
7156571564
struct test_memio_ctx test_ctx;
71566-
uint8_t test_buffer[16];
71565+
byte test_buffer[16];
7156771566
unsigned int test;
7156871567

7156971568
/* test == 0 : client writes, server reads */

0 commit comments

Comments
 (0)