add tlshand.$O to Makefile, don't include bio.h in tlshand.c and also only typedef TlsSec once. Notes: Mon Apr 10 12:32:54 EDT 2006 rsc Don't see a need for thisyet. Reference: /n/sources/patch/sorry/drawterm-tlshand Date: Thu Apr 6 02:14:05 CES 2006 Signed-off-by: geoff@collyer.net Reviewed-by: rsc --- /sys/src/cmd/unix/drawterm/libsec/Makefile Thu Apr 6 02:13:30 2006 +++ /sys/src/cmd/unix/drawterm/libsec/Makefile Thu Apr 6 02:13:28 2006 @@ -33,6 +33,7 @@ hmac.$O\ md4.$O\ md5.$O\ + md5block.$O\ md5pickle.$O\ nfastrand.$O\ prng.$O\ @@ -45,8 +46,10 @@ rsagen.$O\ rsaprivtopub.$O\ sha1.$O\ + sha1block.$O\ sha1pickle.$O\ - smallprimes.$O + smallprimes.$O\ + tlshand.$O\ default: $(LIB) $(LIB): $(OFILES) --- /sys/src/cmd/unix/drawterm/libsec/tlshand.c Thu Apr 6 02:13:51 2006 +++ /sys/src/cmd/unix/drawterm/libsec/tlshand.c Thu Apr 6 02:13:43 2006 @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -116,7 +115,7 @@ } u; } Msg; -typedef struct TlsSec{ +struct TlsSec{ char *server; // name of remote; nil for server int ok; // <0 killed; ==0 in progress; >0 reusable RSApub *rsapub; @@ -130,7 +129,7 @@ void (*prf)(uchar*, int, uchar*, int, char*, uchar*, int, uchar*, int); void (*setFinished)(TlsSec*, MD5state, SHAstate, uchar*, int); int nfin; -} TlsSec; +}; enum {