Make BIO opaque
Move the the BIO_METHOD and BIO structures into internal header files, provide appropriate accessor methods and update all internal code to use the new accessors where appropriate. Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -1105,8 +1105,8 @@ void SSL_set_wbio(SSL *s, BIO *wbio)
|
||||
*/
|
||||
if (s->bbio != NULL) {
|
||||
if (s->wbio == s->bbio) {
|
||||
s->wbio = s->wbio->next_bio;
|
||||
s->bbio->next_bio = NULL;
|
||||
s->wbio = BIO_next(s->wbio);
|
||||
BIO_set_next(s->bbio, NULL);
|
||||
}
|
||||
}
|
||||
if (s->wbio != wbio && s->rbio != s->wbio)
|
||||
|
Reference in New Issue
Block a user