Commit Graph

5 Commits (d8152b6f7e1bfeb6305456d7a2e45c33cf82e135)

Author SHA1 Message Date
Jason Ish f342d4aacd rust: fix clippy lints for clippy::len_zero 2 years ago
Shivani Bhardwaj b5a123adb1 ssh: use Direction enum 3 years ago
Jason Ish 363b5f99c3 rust: functions that reference raw pointers are unsafe
Based on the Rust clippy lint that recommends that any public
function that dereferences a raw pointer, mark all FFI functions
that reference raw pointers with build_slice and cast_pointer
as unsafe.

This commits starts by removing the unsafe wrapper inside
the build_slice and cast_pointer macros then marks all
functions that use these macros as unsafe.

Then fix all not_unsafe_ptr_arg_deref warnings from clippy.

Fixes clippy lint:
https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
3 years ago
Vadym Malakhatko 536cee3ba9 rust/ssh: add hassh generation
Add generation of hassh fingerprints based on fields in the kexinit record
4 years ago
Philippe Antoine 69b4fffdae parse: move SSH parser from C to Rust 4 years ago