From fa5bb5013db68a145938661777fa65df467fce1d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 Dec 2001 09:17:23 +0000 Subject: * assuan-connect.c (assuan_pipe_connect): Implemented the inital handshake. * assuan-client.c (read_from_server): Renamed to (_assuan_read_from_server): this and made external. * assuan-listen.c (assuan_set_hello_line): New. (assuan_accept): Use a custom hello line is available. * assuan-buffer.c (assuan_read_line): New. (assuan_pending_line): New. (_assuan_write_line): Renamed to .. (assuan_write_line): this, made public and changed all callers. --- src/assuan-client.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/assuan-client.c') diff --git a/src/assuan-client.c b/src/assuan-client.c index 03c7c09..a555cf3 100644 --- a/src/assuan-client.c +++ b/src/assuan-client.c @@ -32,8 +32,8 @@ #define xtoi_2(p) ((xtoi_1(p) * 16) + xtoi_1((p)+1)) -static AssuanError -read_from_server (ASSUAN_CONTEXT ctx, int *okay, int *off) +AssuanError +_assuan_read_from_server (ASSUAN_CONTEXT ctx, int *okay, int *off) { char *line; int linelen; @@ -114,12 +114,12 @@ assuan_transact (ASSUAN_CONTEXT ctx, unsigned char *line; int linelen; - rc = _assuan_write_line (ctx, command); + rc = assuan_write_line (ctx, command); if (rc) return rc; again: - rc = read_from_server (ctx, &okay, &off); + rc = _assuan_read_from_server (ctx, &okay, &off); if (rc) return rc; /* error reading from server */ @@ -162,8 +162,8 @@ assuan_transact (ASSUAN_CONTEXT ctx, { if (!inquire_cb) { - _assuan_write_line (ctx, "END"); /* get out of inquire mode */ - read_from_server (ctx, &okay, &off); /* dummy read the response */ + assuan_write_line (ctx, "END"); /* get out of inquire mode */ + _assuan_read_from_server (ctx, &okay, &off); /* dummy read */ rc = ASSUAN_No_Inquire_Callback; } else -- cgit v1.2.3