summaryrefslogtreecommitdiff
path: root/src/serv.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-15 18:43:14 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-15 18:43:14 +0000
commit9b4e06e4e0ab490dad483b80153734702b4ba799 (patch)
treebe28c1400197d7dadde7b99f871f63eb8a14f872 /src/serv.c
parent21edeccceeac440c27c1c358651f5e669dde89d2 (diff)
downloadgnutls-9b4e06e4e0ab490dad483b80153734702b4ba799.tar.gz
*** empty log message ***
Diffstat (limited to 'src/serv.c')
-rw-r--r--src/serv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serv.c b/src/serv.c
index defc1e558e..6020011fbd 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -249,7 +249,7 @@ int read_request(GNUTLS_STATE state, char *data, int data_size, int rnl)
ptr = data;
for (n = 1; n < data_size; n++) {
do {
- rc = gnutls_read(state, &c, 1);
+ rc = gnutls_record_recv(state, &c, 1);
} while (rc == GNUTLS_E_INTERRUPTED
|| rc == GNUTLS_E_AGAIN);
@@ -453,7 +453,7 @@ int main(int argc, char **argv)
strlen(buffer));
do {
ret =
- gnutls_write(state,
+ gnutls_record_send(state,
buffer,
strlen
(buffer));
@@ -469,7 +469,7 @@ int main(int argc, char **argv)
strcat(http_buffer, HTTP_END);
do {
ret =
- gnutls_write(state,
+ gnutls_record_send(state,
http_buffer,
strlen
(http_buffer));