Struct openssl::x509::X509ReqRef [−]
pub struct X509ReqRef(_);
Reference to X509Req.
Methods
impl X509ReqRef[src]
impl X509ReqRefpub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>[src]
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>Serializes the certificate request to a PEM-encoded PKCS#10 structure.
The output will have a header of -----BEGIN CERTIFICATE REQUEST-----.
This corresponds to PEM_write_bio_X509_REQ.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>[src]
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>Serializes the certificate request to a DER-encoded PKCS#10 structure.
This corresponds to i2d_X509_REQ.
pub fn version(&self) -> i32[src]
pub fn version(&self) -> i32Returns the numerical value of the version field of the certificate request.
This corresponds to X509_REQ_get_version
pub fn subject_name(&self) -> &X509NameRef[src]
pub fn subject_name(&self) -> &X509NameRefReturns the subject name of the certificate request.
This corresponds to X509_REQ_get_subject_name
pub fn public_key(&self) -> Result<PKey<Public>, ErrorStack>[src]
pub fn public_key(&self) -> Result<PKey<Public>, ErrorStack>Returns the public key of the certificate request.
This corresponds to [`X509_REQ_get_pubkey"]
pub fn extensions(&self) -> Result<Stack<X509Extension>, ErrorStack>[src]
pub fn extensions(&self) -> Result<Stack<X509Extension>, ErrorStack>Returns the extensions of the certificate request.
This corresponds to [`X509_REQ_get_extensions"]
Trait Implementations
impl Borrow<X509ReqRef> for X509Req
impl Borrow<X509ReqRef> for X509Reqfn borrow(&self) -> &X509ReqRef
fn borrow(&self) -> &X509ReqRefImmutably borrows from an owned value. Read more
impl AsRef<X509ReqRef> for X509Req
impl AsRef<X509ReqRef> for X509Reqfn as_ref(&self) -> &X509ReqRef
fn as_ref(&self) -> &X509ReqRefPerforms the conversion.
impl ForeignTypeRef for X509ReqRef
impl ForeignTypeRef for X509ReqReftype CType = X509_REQ
The raw C type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self[src]
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a SelfConstructs a shared instance of this type from its raw type.
ⓘImportant traits for &'a mut Runsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self[src]
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut SelfConstructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType[src]
fn as_ptr(&self) -> *mut Self::CTypeReturns a raw pointer to the wrapped value.
impl Send for X509ReqRef[src]
impl Send for X509ReqRefimpl Sync for X509ReqRef[src]
impl Sync for X509ReqRef