Struct openssl::dh::DhRef
[−]
pub struct DhRef(_);
Methods
impl DhRef
[src]
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.
Trait Implementations
impl ForeignTypeRef for DhRef
type CType = DH
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
[src]
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
Returns a raw pointer to the wrapped value.