mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 07:10:49 +02:00
bio: ABI breaking change: use int instead of byte for type
This commit is contained in:
@@ -2093,7 +2093,7 @@ WOLFSSL_BIO_METHOD *wolfSSL_BIO_meth_new(int type, const char *name)
|
||||
return NULL;
|
||||
}
|
||||
XMEMSET(meth, 0, sizeof(WOLFSSL_BIO_METHOD));
|
||||
meth->type = (byte)type;
|
||||
meth->type = type;
|
||||
XSTRNCPY(meth->name, name, MAX_BIO_METHOD_NAME - 1);
|
||||
|
||||
return meth;
|
||||
@@ -2890,7 +2890,7 @@ int wolfSSL_BIO_flush(WOLFSSL_BIO* bio)
|
||||
DYNAMIC_TYPE_OPENSSL);
|
||||
if (bio) {
|
||||
XMEMSET(bio, 0, sizeof(WOLFSSL_BIO));
|
||||
bio->type = (byte)method->type;
|
||||
bio->type = method->type;
|
||||
#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
bio->method = (WOLFSSL_BIO_METHOD*)method;
|
||||
#else
|
||||
|
||||
+1
-1
@@ -2819,7 +2819,7 @@ struct WOLFSSL_BIO {
|
||||
} num;
|
||||
int eof; /* eof flag */
|
||||
int flags;
|
||||
byte type; /* method type */
|
||||
int type; /* method type */
|
||||
byte init:1; /* bio has been initialized */
|
||||
byte shutdown:1; /* close flag */
|
||||
byte connected:1; /* connected state, for datagram BIOs -- as for
|
||||
|
||||
+1
-1
@@ -783,7 +783,7 @@ typedef long (*wolfssl_BIO_meth_ctrl_info_cb)(WOLFSSL_BIO*, int, wolfSSL_BIO_inf
|
||||
#define MAX_BIO_METHOD_NAME 256
|
||||
#endif
|
||||
struct WOLFSSL_BIO_METHOD {
|
||||
byte type; /* method type */
|
||||
int type; /* method type */
|
||||
char name[MAX_BIO_METHOD_NAME];
|
||||
wolfSSL_BIO_meth_write_cb writeCb;
|
||||
wolfSSL_BIO_meth_read_cb readCb;
|
||||
|
||||
Reference in New Issue
Block a user