diff --git a/crypto/bio/bio.c b/crypto/bio/bio.c index b1e79dcc..ad6c259b 100644 --- a/crypto/bio/bio.c +++ b/crypto/bio/bio.c @@ -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; } diff --git a/include/openssl/bio.h b/include/openssl/bio.h index 2eabc525..f0e2519e 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -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|. */