X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=ssl%2Fs23_pkt.c;h=4ca6a1b2584587fd84df16d1a90197b32612d587;hb=48e0f6667b86cade6e7b7afa83c7006ab7e8c2d1;hp=99f909d50fa00257a43a7ac904b4004560a01ed7;hpb=413c4f45ed0508d2242638696b7665f499d68265;p=oweals%2Fopenssl.git diff --git a/ssl/s23_pkt.c b/ssl/s23_pkt.c index 99f909d50f..4ca6a1b258 100644 --- a/ssl/s23_pkt.c +++ b/ssl/s23_pkt.c @@ -59,12 +59,11 @@ #include #include #define USE_SOCKETS -#include "evp.h" -#include "buffer.h" #include "ssl_locl.h" +#include +#include -int ssl23_write_bytes(s) -SSL *s; +int ssl23_write_bytes(SSL *s) { int i,num,tot; char *buf; @@ -90,10 +89,8 @@ SSL *s; } } -/* only return when we have read 'n' bytes */ -int ssl23_read_bytes(s,n) -SSL *s; -int n; +/* return regularly only when we have read (at least) 'n' bytes */ +int ssl23_read_bytes(SSL *s, int n) { unsigned char *p; int j;