From bf557add270c8add5a867d71d3a3d5d46894f59f Mon Sep 17 00:00:00 2001 From: Gleb Pomykalov Date: Fri, 22 Feb 2019 22:34:04 +0300 Subject: [PATCH] Improve docs and comments --- src/sys/socket/mod.rs | 8 ++++---- test/sys/test_socket.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index bce442b4e1..5a054b4bea 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -704,7 +704,7 @@ pub enum ControlMessage<'a> { ScmCredentials(&'a libc::ucred), /// Set IV for `AF_ALG` crypto API. - /// AF_ALG is only supported on linux and android. + /// /// For further information, please refer to the /// [`documentation`](https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html) #[cfg(any( @@ -714,7 +714,7 @@ pub enum ControlMessage<'a> { AlgSetIv(&'a [u8]), /// Set crypto operation for `AF_ALG` crypto API. It may be one of /// `ALG_OP_ENCRYPT` or `ALG_OP_DECRYPT` - /// AF_ALG is only supported on linux and android. + /// /// For further information, please refer to the /// [`documentation`](https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html) #[cfg(any( @@ -722,9 +722,9 @@ pub enum ControlMessage<'a> { target_os = "linux", ))] AlgSetOp(&'a libc::c_int), - /// Set the length of associated authentication data (AAD) (applicable only to AEAD algoritms) + /// Set the length of associated authentication data (AAD) (applicable only to AEAD algorithms) /// for `AF_ALG` crypto API. - /// AF_ALG is only supported on linux and android. + /// /// For further information, please refer to the /// [`documentation`](https://kernel.readthedocs.io/en/sphinx-samples/crypto-API.html) #[cfg(any( diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 13cfe65b05..2790f681e7 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -186,7 +186,7 @@ pub fn test_scm_rights() { close(w).unwrap(); } -// Disable the test on emulated platforms due to a lack of support of AF_ALG in QEMU +// Disable the test on emulated platforms due to not enabled support of AF_ALG in QEMU from rust cross #[cfg_attr(not(any(target_arch = "x86_64", target_arch = "i686")), ignore)] #[cfg(any(target_os = "linux", target_os= "android"))] #[test] @@ -250,7 +250,7 @@ pub fn test_af_alg_cipher() { assert_eq!(decrypted, payload); } -// Disable the test on emulated platforms due to a lack of support of AF_ALG in QEMU +// Disable the test on emulated platforms due to not enabled support of AF_ALG in QEMU from rust cross #[cfg_attr(not(any(target_arch = "x86_64", target_arch = "i686")), ignore)] #[cfg(any(target_os = "linux", target_os= "android"))] #[test]