X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbio%2Fbio.h;h=405e7694944752126cce1e2491f7e3bb8964604e;hp=8e5b7b5280735f19b32f1e8e3c89e1348dd06d3a;hb=1aad3392e531aa9d32583b435ba4f0b296ee4d27;hpb=ba9f28088597f103f0a058ecf3772c521663add5 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);