latchset / kryoptic

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

Refactor attribute code to use methods #104

Closed simo5 closed 1 day ago

simo5 commented 2 days ago

Instead of using functions, implement methods on strcuts and enums. This looks more ergonomic and gives a better way to import the objects as well as a clear signal of what the output of the function actually is.

simo5 commented 1 day ago

This is again a mostly cosmetic refactoring to improve the ergonomics of the code, but not substantial changes, so I will once again self-approve this one.