Differences From:
File
src/http.c
part of check-in
[c12e5b102e]
- On windows, a recv() call fails if the return value is less than or equal
to zero. Ticket 66cbcd56a229f33af6b9a6329a7
by
drh on
2008-11-27 13:50:41.
[view]
To:
File
src/http.c
part of check-in
[797d680ef5]
- Add code to understand the "https://" prefix on server URLs. Any attempt to
use https gives an error at this point, however. This is a work in progress.
by
drh on
2009-01-13 18:43:47.
[view]
@@ -79,12 +79,13 @@
static struct sockaddr_in addr; /* The server address */
static int addrIsInit = 0; /* True once addr is initialized */
int s;
+ if( g.urlIsHttps ){
+ fossil_fatal("SSL/TLS is not yet implemented.");
+ }
ws_init();
-
- if( !addrIsInit ){
-
+ if( !addrIsInit ){
addr.sin_family = AF_INET;
addr.sin_port = htons(g.urlPort);
*(int*)&addr.sin_addr = inet_addr(g.urlName);
if( -1 == *(int*)&addr.sin_addr ){