Skip to content

Commit 737e12a

Browse files
committed
fixup! Initialize BIO methods at compile time
1 parent b86d2a3 commit 737e12a

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

wolfssl/ssl.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -525,18 +525,8 @@ struct WOLFSSL_BIO_METHOD {
525525
wolfssl_BIO_meth_ctrl_info_cb ctrlInfoCb;
526526
};
527527

528-
#define WOLFSSL_BIO_METHOD_INIT(bio_type) { \
529-
.type = bio_type, \
530-
.name = { 0 }, \
531-
.writeCb = NULL, \
532-
.readCb = NULL, \
533-
.putsCb = NULL, \
534-
.getsCb = NULL, \
535-
.ctrlCb = NULL, \
536-
.createCb = NULL, \
537-
.freeCb = NULL, \
538-
.ctrlInfoCb = NULL, \
539-
}
528+
#define WOLFSSL_BIO_METHOD_INIT(bio_type) \
529+
{ bio_type, { 0 }, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
540530

541531
/* wolfSSL BIO type */
542532
typedef long (*wolf_bio_info_cb)(WOLFSSL_BIO *bio, int event, const char *parg,

0 commit comments

Comments
 (0)