Struct openssl::x509::X509Req
[−]
pub struct X509Req(_);
Methods
impl X509Req
[src]
pub fn builder() -> Result<X509ReqBuilder, ErrorStack>
[src]
pub fn from_pem(buf: &[u8]) -> Result<X509Req, ErrorStack>
[src]
Reads CSR from PEM
pub fn from_der(der: &[u8]) -> Result<X509Req, ErrorStack>
[src]
Deserializes a value from DER-formatted data.
Methods from Deref<Target = X509ReqRef>
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes this value to PEM.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes this value to DER.
pub fn version(&self) -> i32
[src]
pub fn subject_name(&self) -> &X509NameRef
[src]
Trait Implementations
impl ForeignType for X509Req
type CType = X509_REQ
The raw C type.
type Ref = X509ReqRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut X509_REQ) -> X509Req
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut X509_REQ
Returns a raw pointer to the wrapped value.
impl Drop for X509Req
impl Deref for X509Req
type Target = X509ReqRef
The resulting type after dereferencing.
fn deref(&self) -> &X509ReqRef
Dereferences the value.
impl DerefMut for X509Req
fn deref_mut(&mut self) -> &mut X509ReqRef
Mutably dereferences the value.