+15
-3
lines changedFilter options
+15
-3
lines changed Original file line number Diff line number Diff line change
@@ -177,6 +177,12 @@ const char *SSL_rstate_string(const SSL *s)
177
177
}
178
178
}
179
179
180
+
/*
181
+
* Return values are as per SSL_read(), i.e.
182
+
* >0 The number of read bytes
183
+
* 0 Failure (not retryable)
184
+
* <0 Failure (may be retryable)
185
+
*/
180
186
int ssl3_read_n(SSL *s, int n, int max, int extend, int clearold)
181
187
{
182
188
/*
@@ -306,7 +312,7 @@ int ssl3_read_n(SSL *s, int n, int max, int extend, int clearold)
306
312
if (s->mode & SSL_MODE_RELEASE_BUFFERS && !SSL_IS_DTLS(s))
307
313
if (len + left == 0)
308
314
ssl3_release_read_buffer(s);
309
-
return (i);
315
+
return -1;
310
316
}
311
317
left += i;
312
318
/*
@@ -874,7 +880,13 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
874
880
return -1;
875
881
}
876
882
877
-
/* if s->s3->wbuf.left != 0, we need to call this */
883
+
/* if s->s3->wbuf.left != 0, we need to call this
884
+
*
885
+
* Return values are as per SSL_read(), i.e.
886
+
* >0 The number of read bytes
887
+
* 0 Failure (not retryable)
888
+
* <0 Failure (may be retryable)
889
+
*/
878
890
int ssl3_write_pending(SSL *s, int type, const unsigned char *buf,
879
891
unsigned int len)
880
892
{
@@ -924,7 +936,7 @@ int ssl3_write_pending(SSL *s, int type, const unsigned char *buf,
924
936
*/
925
937
SSL3_BUFFER_set_left(&wb[currbuf], 0);
926
938
}
927
-
return (i);
939
+
return -1;
928
940
}
929
941
SSL3_BUFFER_add_offset(&wb[currbuf], i);
930
942
SSL3_BUFFER_add_left(&wb[currbuf], -i);
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4