Skip to content

Commit 29598ef

Browse files
committed
docs: ♻️ add some todos what to improve
1 parent 6b71981 commit 29598ef

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test-certs/src/configuration/certificates.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub struct CertificateAuthorityConfiguration {
2525
}
2626

2727
/// A certificate used for client authentication.
28+
// NOTE: A shared basic cert configuration could come in handy to not have to duplicate all cert properties for clients and servers
2829
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
2930
#[serde(deny_unknown_fields)]
3031
pub struct ClientConfiguration {
@@ -33,7 +34,9 @@ pub struct ClientConfiguration {
3334
pub export_key: bool,
3435

3536
/// Ip address of the client.
37+
// TODO: maybe allow multiple Ip addresses?
3638
pub ip: IpAddr,
39+
// TODO: Have a dns name that is used for the subject alt names
3740
}
3841

3942
/// A certificate used for server authentication.
@@ -45,7 +48,9 @@ pub struct ServerConfiguration {
4548
pub export_key: bool,
4649

4750
/// Ip address of the server.
51+
// TODO: maybe allow multiple Ip addresses?
4852
pub ip: IpAddr,
53+
// TODO: Have a dns name that is used for the subject alt names
4954
}
5055

5156
/// All kinds of different certificates.

test-certs/src/generation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ use crate::{
1313
Certificate, Error,
1414
};
1515

16-
/// Trait to convert [`CertificateType`] to [`Certificate`].
16+
/// Extension trait to convert [`CertificateType`] to [`Certificate`].
17+
// NOTE: Instead of a trait use actual types?
1718
pub trait CertificateGenerator {
1819
/// Build a [`Certificate`].
1920
fn build(&self, name: &str, issuer: Option<&Certificate>) -> Result<Certificate, Error>;

0 commit comments

Comments
 (0)