X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/567c0ca977b29670af9c2b66d221d03ce844c6f1..d404c6fa5232e0e8ed10ee90c261b50d60fd08ea:/h/netsec.h?ds=sidebyside diff --git a/h/netsec.h b/h/netsec.h index e652a6f4..e05e79f1 100644 --- a/h/netsec.h +++ b/h/netsec.h @@ -34,10 +34,11 @@ void netsec_shutdown(netsec_context *ns_context, int closeflag); * Arguments: * * ns_context - Network security context - * fd - File descriptor of network connection. + * readfd - Read file descriptor of remote connection. + * writefd - Write file descriptor of remote connection */ -void netsec_set_fd(netsec_context *ns_context, int fd); +void netsec_set_fd(netsec_context *ns_context, int readfd, int writefd); /* * Set the userid used to authenticate to this connection. @@ -138,7 +139,7 @@ void netsec_set_timeout(netsec_context *ns_context, int timeout); * Returns pointer to string, or NULL on error. */ -char *netsec_readline(netsec_context *ns_context, size_t *lenght, +char *netsec_readline(netsec_context *ns_context, size_t *length, char **errstr); /*