You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cl...@apache.org on 2022/09/15 17:33:03 UTC
[qpid-proton] branch main updated (a4375a835 -> c1171d9ab)
This is an automated email from the ASF dual-hosted git repository.
cliffjansen pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
from a4375a835 PROTON-2590: [Python] Remove use of "from __future__ import ..."
new f8f538645 PROTON-2612: TLS OpenSSL library: initialize read raw buffer size to use whole capacity
new c1171d9ab PROTON-2613: TLS OpenSSL library: fix SSL_write configuration for partial writes
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
c/src/tls/openssl.c | 5 +++++
1 file changed, 5 insertions(+)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[qpid-proton] 01/02: PROTON-2612: TLS OpenSSL library: initialize read raw buffer size to use whole capacity
Posted by cl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
cliffjansen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit f8f5386455c8bfec3cc40fe8271acdd50b4f2f4f
Author: Clifford Jansen <cl...@apache.org>
AuthorDate: Thu Sep 15 10:14:55 2022 -0700
PROTON-2612: TLS OpenSSL library: initialize read raw buffer size to use whole capacity
---
c/src/tls/openssl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/c/src/tls/openssl.c b/c/src/tls/openssl.c
index d36232604..c05e09b99 100644
--- a/c/src/tls/openssl.c
+++ b/c/src/tls/openssl.c
@@ -1646,6 +1646,7 @@ size_t pn_tls_give_encrypt_output_buffers(pn_tls_t* tls, pn_raw_buffer_t const*
// Get next free
assert(tls->eresult_buffers[current-1].type == buff_empty);
raw_buffer_to_pbuffer(bufs + i, &tls->eresult_buffers[current-1], buff_eresult_blank);
+ tls->eresult_buffers[current-1].size = 0;
previous = current;
current = tls->eresult_buffers[current-1].next;
}
@@ -1673,6 +1674,7 @@ size_t pn_tls_give_decrypt_output_buffers(pn_tls_t* tls, pn_raw_buffer_t const*
// Get next free
assert(tls->dresult_buffers[current-1].type == buff_empty);
raw_buffer_to_pbuffer(bufs + i, &tls->dresult_buffers[current-1], buff_dresult_blank);
+ tls->dresult_buffers[current-1].size = 0;
previous = current;
current = tls->dresult_buffers[current-1].next;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[qpid-proton] 02/02: PROTON-2613: TLS OpenSSL library: fix SSL_write configuration for partial writes
Posted by cl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
cliffjansen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit c1171d9ab347cbd1442a7f77ad6dd4db74f8619b
Author: Clifford Jansen <cl...@apache.org>
AuthorDate: Thu Sep 15 10:25:12 2022 -0700
PROTON-2613: TLS OpenSSL library: fix SSL_write configuration for partial writes
---
c/src/tls/openssl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/c/src/tls/openssl.c b/c/src/tls/openssl.c
index c05e09b99..4aadc8861 100644
--- a/c/src/tls/openssl.c
+++ b/c/src/tls/openssl.c
@@ -1205,6 +1205,9 @@ static int init_ssl_socket(pn_tls_t *ssl, pn_tls_config_t *domain)
return -1;
}
+ // Enable "write as much as you hve buffer space for", similar to BIOs and raw sockets.
+ SSL_set_mode(ssl->ssl, SSL_MODE_ENABLE_PARTIAL_WRITE);
+
// store backpointer
SSL_set_ex_data(ssl->ssl, tls_ex_data_index, ssl);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org