summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bio.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-06-07 22:51:55 +0000
committerBodo Möller <bodo@openssl.org>1999-06-07 22:51:55 +0000
commit1aad3392e531aa9d32583b435ba4f0b296ee4d27 (patch)
tree82d88cd0f3c098bbac9a03b2c8ff8efbcfd835fd /crypto/bio/bio.h
parentba9f28088597f103f0a058ecf3772c521663add5 (diff)
Fix for BIO pairs.
Diffstat (limited to 'crypto/bio/bio.h')
-rw-r--r--crypto/bio/bio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h
index 8e5b7b5280..405e769494 100644
--- a/crypto/bio/bio.h
+++ b/crypto/bio/bio.h
@@ -512,6 +512,14 @@ int BIO_fd_non_fatal_error(int error);
int BIO_dump(BIO *b,const char *bytes,int len);
struct hostent *BIO_gethostbyname(const char *name);
+/* We might want a thread-safe interface too:
+ * struct hostent *BIO_gethostbyname_r(const char *name,
+ * struct hostent *result, void *buffer, size_t buflen);
+ * or something similar (caller allocates a struct hostent,
+ * pointed to by "result", and additional buffer space for the various
+ * substructures; if the buffer does not suffice, NULL is returned
+ * and an appropriate error code is set).
+ */
int BIO_sock_error(int sock);
int BIO_socket_ioctl(int fd, long type, unsigned long *arg);
int BIO_socket_nbio(int fd,int mode);