Skip to content

Commit

Permalink
Refactor pgp_subsig_t to rnp::Signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Feb 24, 2025
1 parent 4c939e0 commit cb6409c
Show file tree
Hide file tree
Showing 14 changed files with 266 additions and 229 deletions.
8 changes: 4 additions & 4 deletions include/rekey/rnp_key_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ class KeyStore {
* @return pointer to the newly added signature or nullptr if error occurred (key not
* found, whatever else).
*/
pgp_subsig_t *add_key_sig(const pgp_fingerprint_t &keyfp,
const pgp_signature_t & sig,
const pgp_userid_pkt_t * uid,
bool front);
rnp::Signature *add_key_sig(const pgp_fingerprint_t &keyfp,
const pgp_signature_t & sig,
const pgp_userid_pkt_t * uid,
bool front);

/**
* @brief Add transferable key to the keystore.
Expand Down
1 change: 1 addition & 0 deletions src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ add_library(librnp-obj OBJECT
key_material.cpp
enc_material.cpp
sig_material.cpp
signature.cpp
keygen.cpp
pgp-key.cpp
rnp.cpp
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ffi-priv-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct rnp_signature_handle_st {
* @brief Key to which this signature belongs, if available.
*/
const pgp_key_t *key;
pgp_subsig_t * sig;
rnp::Signature * sig;
/**
* @brief sig pointer is owned by structure and should be deallocated.
*/
Expand All @@ -69,7 +69,7 @@ struct rnp_signature_handle_st {

rnp_signature_handle_st(rnp_ffi_t affi,
const pgp_key_t *akey = nullptr,
pgp_subsig_t * asig = nullptr,
rnp::Signature * asig = nullptr,
bool aown_sig = false,
bool anew_sig = false)
: ffi(affi), key(akey), sig(asig), own_sig(aown_sig), new_sig(anew_sig)
Expand Down
Loading

0 comments on commit cb6409c

Please sign in to comment.