Commit Graph

20 Commits (main)

Author SHA1 Message Date
Aydin Mercan d5a61e4bbe
bearssl(-sys): random changes while busy
- bump dependencies
- bump MSRV to 1.65
- remove bad layouts
2022-12-03 16:13:51 +03:00
Aydin Mercan 771f543cb5
bearssl-sys: use bindgen's usize setting
* `bindgen` can now set size_t as usize. This should remove the annoying
  type definition.
2022-11-05 16:12:38 +03:00
Aydin Mercan 8d5a9f7a16
bearssl(-sys): bump msrv to 1.65 2022-11-05 16:10:37 +03:00
Aydin Mercan bd4230a01c
bearssl(-sys): bump dependencies 2022-10-30 16:08:43 +03:00
Aydin Mercan 82d272cdb8
bearssl(-sys): update libc 2022-10-06 20:22:52 +03:00
Aydin Mercan ebd9663752
bearssl-sys: break-up `build.rs`
The `build.rs` is destined to get more cluttered as the autodetection
gets more optimial and Windows/non-amd64 arches are handled better.
2022-10-06 20:20:12 +03:00
Aydin Mercan 70495f7fdc
bearssl(-sys): update msrv to 1.64
* `core::ffi` types are stable and thus libc isn't used where
`sizeof uintptr_t == sizeof size_t`
2022-09-25 14:00:57 +03:00
Aydin Mercan 2f977dc7dd
bearssl, bearssl-sys: `lib.rs` QoL improvements
* Include the crate's `README.md` as the main doc
* Add common lint denies
* Unify multiple allows into one
2022-09-17 15:47:19 +03:00
Aydin Mercan 279f8ac3e4
bearssl/ec: add basic key wrappings 2022-09-17 15:34:40 +03:00
Aydin Mercan f83ea3b50f
bearssl/rsa: zeroize the keys 2022-09-17 15:31:34 +03:00
Aydin Mercan 96e7e0936e
clippy: explicitly allow unactionable lints
* `TlsProfile` is better off sticking to the style used in standards.

* `bearssl-sys` bindings can't be annotated with safety as they are
  autogenerated and have the same safety properties with the library
  itself.
2022-09-06 22:30:14 +03:00
Aydin Mercan 14d4569001
engine/tls: basic start and replace sslio
* I believe working around `br_sslio_*` isn't worth the effort as the
  same functionality can be done manually with `*_buf` + `*_ack` which
  is used by sslio internally. This will especially be useful when
  wrapping Write/Read traits in std.

* Since both server and client contextes use `br_ssl_engine_context`,
  writing the routines for it removes a lot of future headaches. The
  engines shouldn't be used directly but will be exposed anyway for
  special cases and for having more discoverable errors.
2022-09-06 22:22:05 +03:00
Aydin Mercan fe6c9fd0ed
readme: add badge and repo clarification 2022-09-03 23:10:11 +03:00
Aydin Mercan 016f796299
ci/actions: fix typo & use the original action
* Apparently GitHub Actions doesn't work like I expected it would with
  job forks. Revert to the original.
* Fix the `actions/checkout` type.
2022-09-03 22:41:52 +03:00
Aydin Mercan 997aa62588
ci/github-actions: add audit
* For now auditing should be done daily and on each push to main.
* I have used rustsec's fork because it is more featureful and it has
  some fixes done. Hopefully it should just work.
2022-09-03 22:38:39 +03:00
Aydin Mercan 92814fbaef
cargo: remove lock from gitignore 2022-09-03 22:12:16 +03:00
Aydin Mercan eb24ca0579
git: add .gitsigners file and document how to use 2022-09-03 21:41:59 +03:00
Aydin Mercan a8dcc537b4
cargo/audit: fix configuration 2022-09-03 21:19:48 +03:00
Aydin Mercan 5aefc84f40
readme, cargo: document and categorize more
* Reduce the version of `bearssl` to 0.0.2 to increment minimally from
  the existing crate.
* Add an overview README for a high level description.
* Add crate tags and categories for easier discoverability in the
  future.
2022-09-03 17:54:21 +03:00
Aydin Mercan eca97f9f0b
initial commit
* The `bearssl-sys` crate is basically usable at this point.
* The `bearssl` crate itself needs a lot work before being usable. The
  design needs heavy iterations, considerationg and love.
2022-09-03 17:32:07 +03:00