diff options
| author | beck <> | 1999-09-29 04:37:45 +0000 |
|---|---|---|
| committer | beck <> | 1999-09-29 04:37:45 +0000 |
| commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
| tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libssl/s23_pkt.c | |
| parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
| download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip | |
OpenSSL 0.9.4 merge
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s23_pkt.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/libssl/s23_pkt.c b/src/lib/libssl/s23_pkt.c index c25c312772..8370ea508c 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; |
| @@ -91,9 +90,7 @@ SSL *s; | |||
| 91 | } | 90 | } |
| 92 | 91 | ||
| 93 | /* only return when we have read 'n' bytes */ | 92 | /* only return when we have read '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; |
