From c3ff1e88313b57eaa0f8f9f563b7808cf6ddc0c2 Mon Sep 17 00:00:00 2001 From: Appelmans Date: Thu, 15 Jun 2023 15:30:32 -0700 Subject: [PATCH 1/2] Fixed link --- bindings/rust/s2n-tls/src/testing/s2n_tls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/s2n-tls/src/testing/s2n_tls.rs b/bindings/rust/s2n-tls/src/testing/s2n_tls.rs index 8af6b802dd1..20ad1abd00a 100644 --- a/bindings/rust/s2n-tls/src/testing/s2n_tls.rs +++ b/bindings/rust/s2n-tls/src/testing/s2n_tls.rs @@ -171,7 +171,7 @@ impl<'a, T: 'a + Context> Callback<'a, T> { let data = core::slice::from_raw_parts_mut(data, len as _); match context.on_read(data) { 0 => { - // https://github.com/awslabs/s2n/blob/main/docs/USAGE-GUIDE.md#s2n_connection_set_send_cb + // https://aws.github.io/s2n-tls/doxygen/s2n_8h.html#a4b73b9a8fa03500d5bc609d09035cd45 // s2n-tls wants us to set the global errno to signal blocked errno::set_errno(errno::Errno(libc::EWOULDBLOCK)); -1 From e1a2611d4119fb12fece85b23b65cc91e4cf956b Mon Sep 17 00:00:00 2001 From: Appelmans Date: Thu, 15 Jun 2023 15:59:03 -0700 Subject: [PATCH 2/2] More accurate link --- bindings/rust/s2n-tls/src/testing/s2n_tls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/s2n-tls/src/testing/s2n_tls.rs b/bindings/rust/s2n-tls/src/testing/s2n_tls.rs index 20ad1abd00a..b916a764883 100644 --- a/bindings/rust/s2n-tls/src/testing/s2n_tls.rs +++ b/bindings/rust/s2n-tls/src/testing/s2n_tls.rs @@ -171,7 +171,7 @@ impl<'a, T: 'a + Context> Callback<'a, T> { let data = core::slice::from_raw_parts_mut(data, len as _); match context.on_read(data) { 0 => { - // https://aws.github.io/s2n-tls/doxygen/s2n_8h.html#a4b73b9a8fa03500d5bc609d09035cd45 + // https://aws.github.io/s2n-tls/doxygen/s2n_8h.html#a699fd9e05a8e8163811db6cab01af973 // s2n-tls wants us to set the global errno to signal blocked errno::set_errno(errno::Errno(libc::EWOULDBLOCK)); -1