summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s23_pkt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s23_pkt.c')
-rw-r--r--src/lib/libssl/s23_pkt.c13
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
66int ssl23_write_bytes(s) 66int ssl23_write_bytes(SSL *s)
67SSL *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 */
94int ssl23_read_bytes(s,n) 93int ssl23_read_bytes(SSL *s, int n)
95SSL *s;
96int n;
97 { 94 {
98 unsigned char *p; 95 unsigned char *p;
99 int j; 96 int j;