Skip to content

Commit 4243a78

Browse files
committed
Expose alg field on PublicKey
1 parent dd54046 commit 4243a78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rcgen/src/csr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ use crate::{DistinguishedName, SanType};
1616
#[derive(Debug, PartialEq, Eq, Hash)]
1717
pub struct PublicKey {
1818
raw: Vec<u8>,
19-
alg: &'static SignatureAlgorithm,
19+
/// The algorithm used to generate the public key.
20+
pub alg: &'static SignatureAlgorithm,
2021
}
2122

2223
impl PublicKeyData for PublicKey {

0 commit comments

Comments
 (0)