ソースを参照

Match OpenSSL's values for BIO_CTRL_*.

The fake numbers collide with other numbers defined below. Also PUSH and POP
are actually used. DUP legitimately isn't though.

Change-Id: Iaa15a065d846b89b9b7958b78068393cfee2bd6f
Reviewed-on: https://boringssl-review.googlesource.com/8143
Reviewed-by: Steven Valdez <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
kris/onging/CECPQ3_patch15
David Benjamin 8年前
コミット
bbc7859817
1個のファイルの変更4行の追加4行の削除
  1. +4
    -4
      include/openssl/bio.h

+ 4
- 4
include/openssl/bio.h ファイルの表示

@@ -714,6 +714,8 @@ 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
#define BIO_CTRL_POP 7
#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 */
@@ -724,10 +726,8 @@ OPENSSL_EXPORT int BIO_zero_copy_get_write_buf_done(BIO* bio,
#define BIO_CTRL_GET_CALLBACK 15 /* opt - set callback function */
#define BIO_CTRL_SET_FILENAME 30 /* BIO_s_file special */

/* These are never used, but exist to allow code to compile more easily. */
#define BIO_CTRL_DUP 100
#define BIO_CTRL_PUSH 101
#define BIO_CTRL_POP 102
/* BIO_CTRL_DUP is never used, but exists to allow code to compile more easily. */
#define BIO_CTRL_DUP 12


/* Android compatibility section.


読み込み中…
キャンセル
保存