general: apply clippy lints (#407)* general: update crates to 2021 edition. * general: apply clippy --fix * general: apply manual clippy lints * cargo fmt.
Unify `assert_eq!(…)`/`assert_ne!(…)` to take args in order of `…!(actual, expected)`While there isn't an explicit convention for this in Rust the stdlib docs all use `assert_eq!(actual, expected)`
Unify `assert_eq!(…)`/`assert_ne!(…)` to take args in order of `…!(actual, expected)`While there isn't an explicit convention for this in Rust the stdlib docs all use `assert_eq!(actual, expected)`, making it a sort of implicit convention.
show more ...
fix compilation
fix warning
chore: update deps to work with min-version
[DTLS] Use `RSA_PKCS1_1024_8192_SHA256_FOR_LEGACY_USE_ONLY` for short signatures (#342)Add support for weaker signatures for DTLS behind a flag. With this, RSA keys between 1024 and 8192 bits can b
[DTLS] Use `RSA_PKCS1_1024_8192_SHA256_FOR_LEGACY_USE_ONLY` for short signatures (#342)Add support for weaker signatures for DTLS behind a flag. With this, RSA keys between 1024 and 8192 bits can be negotiated and use for DTLS by opting in. Without opting in the minimum remains 2048 bits
[peer_connection] RTCCertificate: rework `from_pem` and `serialize_pem` (#333)which makes it possible to serialise and persist a certificate to disk. Both methods require `pem` feature to be enable
[peer_connection] RTCCertificate: rework `from_pem` and `serialize_pem` (#333)which makes it possible to serialise and persist a certificate to disk. Both methods require `pem` feature to be enabled (I think having a feature is good since I don't expect many people to use persistent certificate). Previous implementation of `from_pem` was incorrect. It used a given certificate as a CA (hence the 2nd argument) instead of just using the certificate directly (see the related TODO in tests where `cert1 == cert3` should be matching). API reflects one in Pion - https://github.com/pion/webrtc/blob/master/certificate.go#L179 (see `CertificateFromPEM` and `PEM` functions). Also - modify `RTCCertificate::get_fingerprints` to return `Vec<Fingerprint>`. No need for `Result`. - refactor `dtls::crypto::Certificate` - fixes TODO where two certificates should be equal when `from_pem` is being used.
Move all to top level