diff options
| author | markus <> | 2002-09-05 12:51:50 +0000 | 
|---|---|---|
| committer | markus <> | 2002-09-05 12:51:50 +0000 | 
| commit | 15b5d84f9da2ce4bfae8580e56e34a859f74ad71 (patch) | |
| tree | bf939e82d7fd73cc8a01cf6959002209972091bc /src/lib/libssl/s23_pkt.c | |
| parent | 027351f729b9e837200dae6e1520cda6577ab930 (diff) | |
| download | openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.gz openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.tar.bz2 openbsd-15b5d84f9da2ce4bfae8580e56e34a859f74ad71.zip  | |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libssl/s23_pkt.c')
| -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; | 
