X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=tls.c;h=d969b8287064c608c0fd3acb8558010103f6702a;hp=39b31698e1fe5007400a3878c50a954a15b9053d;hb=b965b8cc10f094ec0408d57b1bc9aeee0bca501c;hpb=1f4c517bb889413e55ccee466d9dfe79156092e8 diff --git a/tls.c b/tls.c index 39b3169..d969b82 100644 --- a/tls.c +++ b/tls.c @@ -68,14 +68,14 @@ int uh_tls_init(const char *key, const char *crt) static void tls_ustream_read_cb(struct ustream *s, int bytes) { - struct client *cl = container_of(s, struct client, ssl); + struct client *cl = container_of(s, struct client, ssl.stream); uh_client_read_cb(cl); } static void tls_ustream_write_cb(struct ustream *s, int bytes) { - struct client *cl = container_of(s, struct client, ssl); + struct client *cl = container_of(s, struct client, ssl.stream); if (cl->dispatch.write_cb) cl->dispatch.write_cb(cl); @@ -83,7 +83,7 @@ static void tls_ustream_write_cb(struct ustream *s, int bytes) static void tls_notify_state(struct ustream *s) { - struct client *cl = container_of(s, struct client, ssl); + struct client *cl = container_of(s, struct client, ssl.stream); uh_client_notify_state(cl); }