projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement range request for content download
[citadel.git]
/
webcit
/
crypto.c
diff --git
a/webcit/crypto.c
b/webcit/crypto.c
index d7b460cdef1864651e515eba86b7230456ec94b2..f2752fd576ca1c321e05f2616074d94c9c837604 100644
(file)
--- a/
webcit/crypto.c
+++ b/
webcit/crypto.c
@@
-501,7
+501,7
@@
void ssl_lock(int mode, int n, const char *file, int line)
/*
* Send binary data to the client encrypted.
*/
/*
* Send binary data to the client encrypted.
*/
-
void
client_write_ssl(const StrBuf *Buf)
+
int
client_write_ssl(const StrBuf *Buf)
{
const char *buf;
int retval;
{
const char *buf;
int retval;
@@
-509,7
+509,7
@@
void client_write_ssl(const StrBuf *Buf)
long nbytes;
char junk[1];
long nbytes;
char junk[1];
- if (THREADSSL == NULL) return;
+ if (THREADSSL == NULL) return
-1
;
nbytes = nremain = StrLength(Buf);
buf = ChrPtr(Buf);
nbytes = nremain = StrLength(Buf);
buf = ChrPtr(Buf);
@@
-535,10
+535,11
@@
void client_write_ssl(const StrBuf *Buf)
syslog(LOG_WARNING, "errno is %d\n", errno);
}
endtls();
syslog(LOG_WARNING, "errno is %d\n", errno);
}
endtls();
- return;
+ return
-1
;
}
nremain -= retval;
}
}
nremain -= retval;
}
+ return 0;
}
}