Skip to content

Commit bf557ad

Browse files
author
Gleb Pomykalov
committed
Improve docs and comments
1 parent 2a8b3fb commit bf557ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/sys/socket/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ pub enum ControlMessage<'a> {
704704
ScmCredentials(&'a libc::ucred),
705705

706706
/// Set IV for `AF_ALG` crypto API.
707-
/// AF_ALG is only supported on linux and android.
707+
///
708708
/// For further information, please refer to the
709709
/// [`documentation`](https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html)
710710
#[cfg(any(
@@ -714,17 +714,17 @@ pub enum ControlMessage<'a> {
714714
AlgSetIv(&'a [u8]),
715715
/// Set crypto operation for `AF_ALG` crypto API. It may be one of
716716
/// `ALG_OP_ENCRYPT` or `ALG_OP_DECRYPT`
717-
/// AF_ALG is only supported on linux and android.
717+
///
718718
/// For further information, please refer to the
719719
/// [`documentation`](https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html)
720720
#[cfg(any(
721721
target_os = "android",
722722
target_os = "linux",
723723
))]
724724
AlgSetOp(&'a libc::c_int),
725-
/// Set the length of associated authentication data (AAD) (applicable only to AEAD algoritms)
725+
/// Set the length of associated authentication data (AAD) (applicable only to AEAD algorithms)
726726
/// for `AF_ALG` crypto API.
727-
/// AF_ALG is only supported on linux and android.
727+
///
728728
/// For further information, please refer to the
729729
/// [`documentation`](https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html)
730730
#[cfg(any(

test/sys/test_socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pub fn test_scm_rights() {
186186
close(w).unwrap();
187187
}
188188

189-
// Disable the test on emulated platforms due to a lack of support of AF_ALG in QEMU
189+
// Disable the test on emulated platforms due to not enabled support of AF_ALG in QEMU from rust cross
190190
#[cfg_attr(not(any(target_arch = "x86_64", target_arch = "i686")), ignore)]
191191
#[cfg(any(target_os = "linux", target_os= "android"))]
192192
#[test]
@@ -250,7 +250,7 @@ pub fn test_af_alg_cipher() {
250250
assert_eq!(decrypted, payload);
251251
}
252252

253-
// Disable the test on emulated platforms due to a lack of support of AF_ALG in QEMU
253+
// Disable the test on emulated platforms due to not enabled support of AF_ALG in QEMU from rust cross
254254
#[cfg_attr(not(any(target_arch = "x86_64", target_arch = "i686")), ignore)]
255255
#[cfg(any(target_os = "linux", target_os= "android"))]
256256
#[test]

0 commit comments

Comments
 (0)