X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fhtparser.h;h=946ed5145ef5f0351da10364d0f64e34706b8551;hb=3c5954e94a1b6a035e8afcaa7e8eeec76c817eba;hp=88bfb6e512361fc999b3868e05af379d171539c9;hpb=7595e3a4d77b7e498fa84e27d93cc9f680076561;p=ashd.git diff --git a/src/htparser.h b/src/htparser.h index 88bfb6e..946ed51 100644 --- a/src/htparser.h +++ b/src/htparser.h @@ -6,7 +6,12 @@ struct conn { void *pdata; }; -void serve(FILE *in, struct conn *conn); +struct mtbuf { + struct muth **b; + size_t s, d; +}; + +void serve(struct bufio *in, int infd, struct conn *conn); int listensock4(int port); int listensock6(int port); @@ -15,5 +20,10 @@ void handleplain(int argc, char **argp, char **argv); #ifdef HAVE_GNUTLS void handlegnussl(int argc, char **argp, char **argv); #endif +#ifdef HAVE_OPENSSL +void handleossl(int argc, char **argp, char **argv); +#endif + +extern struct mtbuf listeners; #endif