Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Comments

remove openssl#7

Merged
drahnr merged 5 commits intomasterfrom
bernhard-remove-openssl
Nov 17, 2020
Merged

remove openssl#7
drahnr merged 5 commits intomasterfrom
bernhard-remove-openssl

Conversation

@drahnr
Copy link
Contributor

@drahnr drahnr commented Nov 13, 2020

No description provided.

@drahnr
Copy link
Contributor Author

drahnr commented Nov 13, 2020

Pending some unit tests to verify the results are equiv.

@TriplEight
Copy link
Contributor

if you're waiting travis to be rewritten to gitlab, it kinda depends on this PR.

@drahnr
Copy link
Contributor Author

drahnr commented Nov 13, 2020

This one depends on me writing some verification tests

@TriplEight TriplEight mentioned this pull request Nov 13, 2020
@drahnr drahnr force-pushed the bernhard-remove-openssl branch from fceeda3 to e93f973 Compare November 16, 2020 08:46
@drahnr drahnr force-pushed the bernhard-remove-openssl branch from 5e54fce to 3f030f3 Compare November 16, 2020 13:12
Copy link
Contributor

@gww-parity gww-parity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regression in compiler warnings introduced with:
3f030f3

src/dist/http.rs Outdated
.to_owned();

use picky::key::{PublicKey, PrivateKey};
use picky::pem::{parse_pem, Pem};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused imports: `Pem`, `parse_pem`
   --> src/dist/http.rs:308:22
    |
308 |     use picky::pem::{parse_pem, Pem};
    |                      ^^^^^^^^^  ^^^
    |
    = note: `#[warn(unused_imports)]` on by default

src/dist/http.rs Outdated
use picky::pem::{parse_pem, Pem};
use picky::{signature::SignatureAlgorithm, hash::HashAlgorithm};
use picky::x509::key_id_gen_method::{KeyIdGenError, KeyIdGenMethod};
use picky::x509::{certificate::CertType, csr::Csr};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused imports: `certificate::CertType`, `csr::Csr`
   --> src/dist/http.rs:311:23
    |
311 |     use picky::x509::{certificate::CertType, csr::Csr};
    |                       ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^

src/dist/http.rs Outdated
use picky::key::{PublicKey, PrivateKey};
use picky::pem::{parse_pem, Pem};
use picky::{signature::SignatureAlgorithm, hash::HashAlgorithm};
use picky::x509::key_id_gen_method::{KeyIdGenError, KeyIdGenMethod};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused import: `KeyIdGenError`
   --> src/dist/http.rs:310:42
    |
310 |     use picky::x509::key_id_gen_method::{KeyIdGenError, KeyIdGenMethod};
    |                                          ^^^^^^^^^^^^^

src/dist/http.rs Outdated
use picky::x509::certificate::CertificateBuilder;
use picky::x509::extension::ExtendedKeyUsage;
use picky::x509::extension::KeyUsage;
use picky::x509::Extension;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused import: `picky::x509::Extension`
   --> src/dist/http.rs:317:9
    |
317 |     use picky::x509::Extension;
    |         ^^^^^^^^^^^^^^^^^^^^^^

src/dist/http.rs Outdated
use picky::x509::extension::KeyUsage;
use picky::x509::Extension;
use picky::x509::Extensions;
use sha2::{Sha256, Sha512, Digest};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused imports: `Sha256`, `Sha512`
   --> src/dist/http.rs:319:16
    |
319 |     use sha2::{Sha256, Sha512, Digest};
    |                ^^^^^^  ^^^^^^

src/dist/http.rs Outdated
use chrono::Datelike;
use chrono::Timelike;
use std::ops::DerefMut;
use std::convert::TryFrom;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused import: `std::convert::TryFrom`
   --> src/dist/http.rs:324:9
    |
324 |     use std::convert::TryFrom;
    |         ^^^^^^^^^^^^^^^^^^^^^

src/dist/http.rs Outdated
use chrono::Timelike;
use std::ops::DerefMut;
use std::convert::TryFrom;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: unused import: `Ipv4Addr`
   --> src/dist/http.rs:325:28
    |
325 |     use std::net::{IpAddr, Ipv4Addr, SocketAddr};
    |                            ^^^^^^^^

@drahnr drahnr requested a review from gww-parity November 17, 2020 09:01
@drahnr drahnr self-assigned this Nov 17, 2020
Copy link
Contributor

@gww-parity gww-parity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I see no warnings and nice rustfmt on files. Thank you!

In future it will be highly appreciated if I could see rustfmt/style in separate commit, so commits with actual logical changes are easier to focus on.

Thank you!

@drahnr drahnr merged commit 4b62c1e into master Nov 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants