move bio fds to openssl extra

This commit is contained in:
toddouska 2015-03-07 10:16:26 -08:00
parent 31a2acd9c3
commit f48298cbd5
2 changed files with 5 additions and 1 deletions

View File

@ -1575,8 +1575,10 @@ int InitSSL(WOLFSSL* ssl, WOLFSSL_CTX* ctx)
ssl->wfd = -1;
ssl->rflags = 0; /* no user flags yet */
ssl->wflags = 0; /* no user flags yet */
#ifdef OPENSSL_EXTRA
ssl->biord = 0;
ssl->biowr = 0;
#endif
ssl->IOCB_ReadCtx = &ssl->rfd; /* prevent invalid pointer access if not */
ssl->IOCB_WriteCtx = &ssl->wfd; /* correctly set */

View File

@ -2034,8 +2034,10 @@ struct WOLFSSL {
int wfd; /* write file descriptor */
int rflags; /* user read flags */
int wflags; /* user write flags */
#ifdef OPENSSL_EXTRA
WOLFSSL_BIO* biord; /* socket bio read to free/close */
WOLFSSL_BIO* biowr; /* socket bio write to free/close */
#endif
void* IOCB_ReadCtx;
void* IOCB_WriteCtx;
RNG* rng;
@ -2152,7 +2154,7 @@ struct WOLFSSL {
void* EccSignCtx; /* Ecc Sign Callback Context */
void* EccVerifyCtx; /* Ecc Verify Callback Context */
#endif /* HAVE_ECC */
#ifndef NO_RSA
#ifndef NO_RSA
void* RsaSignCtx; /* Rsa Sign Callback Context */
void* RsaVerifyCtx; /* Rsa Verify Callback Context */
void* RsaEncCtx; /* Rsa Public Encrypt Callback Context */