diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s23_pkt.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/libssl/s23_pkt.c b/src/lib/libssl/s23_pkt.c index c25c312772..f45e1ce3d8 100644 --- a/src/lib/libssl/s23_pkt.c +++ b/src/lib/libssl/s23_pkt.c | |||
| @@ -59,12 +59,11 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <errno.h> | 60 | #include <errno.h> |
| 61 | #define USE_SOCKETS | 61 | #define USE_SOCKETS |
| 62 | #include "evp.h" | 62 | #include <openssl/evp.h> |
| 63 | #include "buffer.h" | 63 | #include <openssl/buffer.h> |
| 64 | #include "ssl_locl.h" | 64 | #include "ssl_locl.h" |
| 65 | 65 | ||
| 66 | int ssl23_write_bytes(s) | 66 | int ssl23_write_bytes(SSL *s) |
| 67 | SSL *s; | ||
| 68 | { | 67 | { |
| 69 | int i,num,tot; | 68 | int i,num,tot; |
| 70 | char *buf; | 69 | char *buf; |
| @@ -76,7 +75,7 @@ SSL *s; | |||
| 76 | { | 75 | { |
| 77 | s->rwstate=SSL_WRITING; | 76 | s->rwstate=SSL_WRITING; |
| 78 | i=BIO_write(s->wbio,&(buf[tot]),num); | 77 | i=BIO_write(s->wbio,&(buf[tot]),num); |
| 79 | if (i < 0) | 78 | if (i <= 0) |
| 80 | { | 79 | { |
| 81 | s->init_off=tot; | 80 | s->init_off=tot; |
| 82 | s->init_num=num; | 81 | s->init_num=num; |
| @@ -90,10 +89,8 @@ SSL *s; | |||
| 90 | } | 89 | } |
| 91 | } | 90 | } |
| 92 | 91 | ||
| 93 | /* only return when we have read 'n' bytes */ | 92 | /* return regularly only when we have read (at least) 'n' bytes */ |
| 94 | int ssl23_read_bytes(s,n) | 93 | int ssl23_read_bytes(SSL *s, int n) |
| 95 | SSL *s; | ||
| 96 | int n; | ||
| 97 | { | 94 | { |
| 98 | unsigned char *p; | 95 | unsigned char *p; |
| 99 | int j; | 96 | int j; |
