projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openssl: keep compatibility with older TLS/SSL protocols
[project/ustream-ssl.git]
/
ustream-io-openssl.c
diff --git
a/ustream-io-openssl.c
b/ustream-io-openssl.c
index 41e69f70542b8d64f209925a045a1c3fc6e684a3..67110550c99926e784ab65cccdfda0eaf0659b27 100644
(file)
--- a/
ustream-io-openssl.c
+++ b/
ustream-io-openssl.c
@@
-88,6
+88,9
@@
s_ustream_write(BIO *b, const char *buf, int len)
if (!s)
return 0;
if (!s)
return 0;
+ if (s->write_error)
+ return len;
+
return ustream_write(s, buf, len, false);
}
return ustream_write(s, buf, len, false);
}
@@
-135,7
+138,7
@@
static BIO *ustream_bio_new(struct ustream *s)
return bio;
}
return bio;
}
-__hidden void ustream_set_io(
void
*ctx, void *ssl, struct ustream *conn)
+__hidden void ustream_set_io(
struct ustream_ssl_ctx
*ctx, void *ssl, struct ustream *conn)
{
BIO *bio = ustream_bio_new(conn);
SSL_set_bio(ssl, bio, bio);
{
BIO *bio = ustream_bio_new(conn);
SSL_set_bio(ssl, bio, bio);