Commit 3d31539b authored by Steven Fackler's avatar Steven Fackler
Browse files

Public keys are not always present

parent 0d0b5080
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ impl EcKeyRef {
        }
    }

    pub fn public_key(&self) -> &EcPointRef {
    pub fn public_key(&self) -> Option<&EcPointRef> {
        unsafe {
            let ptr = ffi::EC_KEY_get0_public_key(self.as_ptr());
            assert!(!ptr.is_null());