Skip to content

Commit 875e4d9

Browse files
committed
feat: make rustls cert public
Signed-off-by: Shane Utt <shaneutt@linux.com>
1 parent 9855feb commit 875e4d9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pingora-core/src/utils/tls/rustls.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ pub struct CertKey {
101101
certificates: Vec<WrappedX509>,
102102
}
103103

104-
#[self_referencing]
104+
#[self_referencing(pub_extras)]
105105
#[derive(Debug)]
106106
pub struct WrappedX509 {
107-
raw_cert: Vec<u8>,
107+
pub raw_cert: Vec<u8>,
108108

109109
#[borrows(raw_cert)]
110110
#[covariant]
111-
cert: X509Certificate<'this>,
111+
pub cert: X509Certificate<'this>,
112112
}
113113

114-
fn parse_x509<C>(raw_cert: &C) -> X509Certificate<'_>
114+
pub fn parse_x509<C>(raw_cert: &C) -> X509Certificate<'_>
115115
where
116116
C: AsRef<[u8]>,
117117
{

0 commit comments

Comments
 (0)