latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
10 stars 4 forks source link

Make OpenSSL context wrappers safer #64

Closed simo5 closed 3 months ago

simo5 commented 3 months ago

Instead of exposing raw pointers which is quite unsafe, internalize as many unsafe operations as possible on these raw pointers so that the actual interface of these wrapped type is mostly safe.

Declare interfaces that still deal with raw pointers as unsafe so that proper care is done when handling them.

Fixes #63