diff options
author | David Benjamin <davidben@chromium.org> | 2015-10-02 21:54:20 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-10-13 01:18:17 +0300 |
commit | 617eac6a21901e5e096e4b9acd6b467957d17949 (patch) | |
tree | f3b4af505739c00342960a38a93fe935c5a10319 /include/openssl/bio.h | |
parent | c7ce977fb98c12fe52699459e6f99eb85842eb2c (diff) |
Align BIO_get_fd with upstream.
OpenSSL's BIO_get_fd returns the fd or -1, not a boolean.
Change-Id: I12a3429c71bb9c9064f9f91329a88923025f1fb5
Reviewed-on: https://boringssl-review.googlesource.com/6080
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/bio.h')
-rw-r--r-- | include/openssl/bio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/openssl/bio.h b/include/openssl/bio.h index 04e37907..481b97ea 100644 --- a/include/openssl/bio.h +++ b/include/openssl/bio.h @@ -444,8 +444,9 @@ OPENSSL_EXPORT BIO *BIO_new_fd(int fd, int close_flag); * or zero on error. */ OPENSSL_EXPORT int BIO_set_fd(BIO *bio, int fd, int close_flag); -/* BIO_get_fd sets |*out_fd| to the file descriptor currently in use by |bio|. - * It returns one on success and zero on error. */ +/* BIO_get_fd returns the file descriptor currently in use by |bio| or -1 if + * |bio| does not wrap a file descriptor. If there is a file descriptor and + * |out_fd| is not NULL, it also sets |*out_fd| to the file descriptor. */ OPENSSL_EXPORT int BIO_get_fd(BIO *bio, int *out_fd); |