Skip to content

Commit c07d863

Browse files
committed
bio: ABI breaking change: use int instead of byte for type
1 parent 7802a75 commit c07d863

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/bio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,7 +2093,7 @@ WOLFSSL_BIO_METHOD *wolfSSL_BIO_meth_new(int type, const char *name)
20932093
return NULL;
20942094
}
20952095
XMEMSET(meth, 0, sizeof(WOLFSSL_BIO_METHOD));
2096-
meth->type = (byte)type;
2096+
meth->type = type;
20972097
XSTRNCPY(meth->name, name, MAX_BIO_METHOD_NAME - 1);
20982098

20992099
return meth;
@@ -2890,7 +2890,7 @@ int wolfSSL_BIO_flush(WOLFSSL_BIO* bio)
28902890
DYNAMIC_TYPE_OPENSSL);
28912891
if (bio) {
28922892
XMEMSET(bio, 0, sizeof(WOLFSSL_BIO));
2893-
bio->type = (byte)method->type;
2893+
bio->type = method->type;
28942894
#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
28952895
bio->method = (WOLFSSL_BIO_METHOD*)method;
28962896
#else

wolfssl/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2819,7 +2819,7 @@ struct WOLFSSL_BIO {
28192819
} num;
28202820
int eof; /* eof flag */
28212821
int flags;
2822-
byte type; /* method type */
2822+
int type; /* method type */
28232823
byte init:1; /* bio has been initialized */
28242824
byte shutdown:1; /* close flag */
28252825
byte connected:1; /* connected state, for datagram BIOs -- as for

wolfssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ typedef long (*wolfssl_BIO_meth_ctrl_info_cb)(WOLFSSL_BIO*, int, wolfSSL_BIO_inf
783783
#define MAX_BIO_METHOD_NAME 256
784784
#endif
785785
struct WOLFSSL_BIO_METHOD {
786-
byte type; /* method type */
786+
int type; /* method type */
787787
char name[MAX_BIO_METHOD_NAME];
788788
wolfSSL_BIO_meth_write_cb writeCb;
789789
wolfSSL_BIO_meth_read_cb readCb;

0 commit comments

Comments
 (0)