uclient-fetch: set server_name of the ssl context to support SNI
[project/uclient.git] / uclient-backend.h
index a5cf4f3..9ccc799 100644 (file)
@@ -32,7 +32,7 @@ struct uclient_backend {
        void (*disconnect)(struct uclient *cl);
 
        int (*read)(struct uclient *cl, char *buf, unsigned int len);
-       int (*write)(struct uclient *cl, char *buf, unsigned int len);
+       int (*write)(struct uclient *cl, const char *buf, unsigned int len);
 };
 
 void uclient_backend_set_error(struct uclient *cl, int code);