fixup! Initialize BIO methods at compile time

This commit is contained in:
Juliusz Sosinowicz
2023-08-09 17:04:59 +02:00
parent b86d2a3bff
commit 737e12a1bd

View File

@@ -525,18 +525,8 @@ struct WOLFSSL_BIO_METHOD {
wolfssl_BIO_meth_ctrl_info_cb ctrlInfoCb; wolfssl_BIO_meth_ctrl_info_cb ctrlInfoCb;
}; };
#define WOLFSSL_BIO_METHOD_INIT(bio_type) { \ #define WOLFSSL_BIO_METHOD_INIT(bio_type) \
.type = bio_type, \ { bio_type, { 0 }, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
.name = { 0 }, \
.writeCb = NULL, \
.readCb = NULL, \
.putsCb = NULL, \
.getsCb = NULL, \
.ctrlCb = NULL, \
.createCb = NULL, \
.freeCb = NULL, \
.ctrlInfoCb = NULL, \
}
/* wolfSSL BIO type */ /* wolfSSL BIO type */
typedef long (*wolf_bio_info_cb)(WOLFSSL_BIO *bio, int event, const char *parg, typedef long (*wolf_bio_info_cb)(WOLFSSL_BIO *bio, int event, const char *parg,