File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ impl<P: Profile> TbsCertificateInner<P> {
228
228
/// use x509_cert::{der::DecodePem, ext::pkix::BasicConstraints, Certificate};
229
229
/// let certificate = Certificate::from_pem(CERT_PEM.as_bytes()).expect("parse certificate");
230
230
///
231
- /// let (critical, constraints) = certificate.tbs_certificate.get_extension::<BasicConstraints>()
231
+ /// let (critical, constraints) = certificate.tbs_certificate() .get_extension::<BasicConstraints>()
232
232
/// .expect("Failed to parse extension")
233
233
/// .expect("Basic constraints expected");
234
234
/// # let _ = constraints;
@@ -264,7 +264,7 @@ impl<P: Profile> TbsCertificateInner<P> {
264
264
/// use x509_cert::{der::DecodePem, ext::pkix::BasicConstraints, Certificate};
265
265
/// let certificate = Certificate::from_pem(CERT_PEM.as_bytes()).expect("parse certificate");
266
266
///
267
- /// let mut extensions_found = certificate.tbs_certificate.filter_extensions::<BasicConstraints>();
267
+ /// let mut extensions_found = certificate.tbs_certificate() .filter_extensions::<BasicConstraints>();
268
268
/// while let Some(Ok((critical, extension))) = extensions_found.next() {
269
269
/// println!("Found (critical={critical}): {extension:?}");
270
270
/// }
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ use x509_cert::{
40
40
/// let req = OcspRequest::from_der(OCSP_REQ_DER).unwrap();
41
41
/// let ca = Certificate::from_der(CA_DER).unwrap();
42
42
///
43
- /// let mut builder = OcspResponseBuilder::new(ca.tbs_certificate.subject().clone())
43
+ /// let mut builder = OcspResponseBuilder::new(ca.tbs_certificate() .subject().clone())
44
44
/// .with_single_response(
45
45
/// SingleResponse::new(
46
46
/// req.tbs_request.request_list[0].req_cert.clone(),
You can’t perform that action at this time.
0 commit comments