bio: remove BIO_CTRL_PUSH/_POP.
We don't support the SSL BIO so this is a no-op change. Change-Id: Iba9522b837ebb0eb6adc80d5df6dcac99abf2552 Reviewed-on: https://boringssl-review.googlesource.com/4360 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
9f33fc63c6
commit
d5eb7f4268
@ -381,10 +381,6 @@ BIO *BIO_push(BIO *bio, BIO *appended_bio) {
|
||||
}
|
||||
|
||||
last_bio->next_bio = appended_bio;
|
||||
/* TODO(fork): this seems very suspect. If we got rid of BIO SSL, we could
|
||||
* get rid of this. */
|
||||
BIO_ctrl(bio, BIO_CTRL_PUSH, 0, bio);
|
||||
|
||||
return bio;
|
||||
}
|
||||
|
||||
@ -395,7 +391,6 @@ BIO *BIO_pop(BIO *bio) {
|
||||
return NULL;
|
||||
}
|
||||
ret = bio->next_bio;
|
||||
BIO_ctrl(bio, BIO_CTRL_POP, 0, bio);
|
||||
bio->next_bio = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
@ -689,8 +689,6 @@ OPENSSL_EXPORT int BIO_zero_copy_get_write_buf_done(BIO* bio,
|
||||
#define BIO_CTRL_INFO 3 /* opt - extra tit-bits */
|
||||
#define BIO_CTRL_SET 4 /* man - set the 'IO' type */
|
||||
#define BIO_CTRL_GET 5 /* man - get the 'IO' type */
|
||||
#define BIO_CTRL_PUSH 6 /* opt - internal, used to signify change */
|
||||
#define BIO_CTRL_POP 7 /* opt - internal, used to signify change */
|
||||
#define BIO_CTRL_GET_CLOSE 8 /* man - set the 'close' on free */
|
||||
#define BIO_CTRL_SET_CLOSE 9 /* man - set the 'close' on free */
|
||||
#define BIO_CTRL_PENDING 10 /* opt - is their more data buffered */
|
||||
@ -783,7 +781,6 @@ struct bio_st {
|
||||
/* num is a BIO-specific value. For example, in fd BIOs it's used to store a
|
||||
* file descriptor. */
|
||||
int num;
|
||||
/* TODO(fork): drop BIO_CTRL_PUSH/BIO_CTRL_POP. */
|
||||
void *ptr;
|
||||
/* next_bio points to the next |BIO| in a chain. This |BIO| owns a reference
|
||||
* to |next_bio|. */
|
||||
|
Loading…
Reference in New Issue
Block a user