76 stable releases

new 300.4.1+3.4.0 Nov 16, 2024
300.3.2+3.3.2 Sep 3, 2024
300.3.1+3.3.1 Jun 4, 2024
300.2.3+3.2.1 Feb 12, 2024
110.0.1+1.1.0f Sep 15, 2017

#201 in Cryptography

Download history 305774/week @ 2024-07-30 296994/week @ 2024-08-06 316322/week @ 2024-08-13 325667/week @ 2024-08-20 307165/week @ 2024-08-27 335665/week @ 2024-09-03 277597/week @ 2024-09-10 257280/week @ 2024-09-17 293351/week @ 2024-09-24 293561/week @ 2024-10-01 279639/week @ 2024-10-08 322438/week @ 2024-10-15 335678/week @ 2024-10-22 337757/week @ 2024-10-29 313059/week @ 2024-11-05 347100/week @ 2024-11-12

1,394,192 downloads per month
Used in 1,665 crates (10 directly)

MIT/Apache

32MB
776K SLoC

C 541K SLoC // 0.1% comments Perl 210K SLoC // 0.1% comments Bitbake 10K SLoC // 0.1% comments GNU Style Assembly 6.5K SLoC // 0.1% comments Templ 4K SLoC // 0.2% comments Shell 2K SLoC // 0.2% comments M4 1.5K SLoC // 0.0% comments Prolog 642 SLoC Rust 592 SLoC // 0.2% comments Assembly 311 SLoC // 0.1% comments ASN.1 136 SLoC // 0.5% comments Emacs Lisp 35 SLoC // 0.5% comments Python 29 SLoC // 0.3% comments Ruby 16 SLoC // 0.3% comments

openssl-src

This crate contains the logic to build OpenSSL and is intended to be consumed by the openssl-sys crate. You likely in theory aren't interacting with this too much!

Versioning

This crate follows the latest minor and patch versions for each maintained major version, according to the OpenSSL release strategy. It has no specific support for LTS versions.

The crate versions follow the X.Y.Z+B pattern:

  • The major version X is the upstream OpenSSL API/ABI compatibility version:
    • 300 for 3.Y.Z
  • The minor Y and patch Z versions are incremented when making changes to the crate, either OpenSSL update or internal changes.
  • B contains the full upstream OpenSSL version, like 1.1.1k or 3.0.7. Note that this field is actually ignored in comparisons and only there for documentation.

Windows MSVC Assembly

Building OpenSSL for windows-msvc targets, users can choose whether to enable assembly language routines, which requires nasm.
The build process will automatically detect whether nasm.exe is installed in PATH. If found, the assembly language routines will be enabled (in other words, the no-asm option will NOT be configured).

You can manipulate this behavior by setting the OPENSSL_RUST_USE_NASM environment variable:

  • 1: Force enable the assembly language routines. (panic if nasm.exe is not available.)
  • 0: Force disable the assembly language routines even if the nasm.exe can be found in PATH.
  • not set: Let the build process automatically detect whether nasm.exe is installed. If found, enable. If not, disable.

However, this environment variable does NOT take effects on non-windows platforms.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in openssl-src by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies