aboutsummaryrefslogtreecommitdiffstats
path: root/g10/ringedit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-01-12 10:20:24 +0000
committerWerner Koch <[email protected]>1999-01-12 10:20:24 +0000
commit62957ff4e73a27226c39586e3aa7a36aaea154b1 (patch)
tree6fe49a6bc4e1dcd3a0d8bebd26a7f1e7c90a5458 /g10/ringedit.c
parentSee ChangeLog: Sun Jan 10 19:36:42 CET 1999 Werner Koch (diff)
downloadgnupg-62957ff4e73a27226c39586e3aa7a36aaea154b1.tar.gz
gnupg-62957ff4e73a27226c39586e3aa7a36aaea154b1.zip
See ChangeLog: Tue Jan 12 11:17:18 CET 1999 Werner Koch
Diffstat (limited to 'g10/ringedit.c')
-rw-r--r--g10/ringedit.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/g10/ringedit.c b/g10/ringedit.c
index 10fea1eaf..4a97f78f8 100644
--- a/g10/ringedit.c
+++ b/g10/ringedit.c
@@ -480,6 +480,23 @@ find_keyblock_bypk( KBPOS *kbpos, PKT_public_key *pk )
return rc;
}
+/****************
+ * Combined function to search for a key and get the position
+ * of the keyblock.
+ */
+int
+find_keyblock_bysk( KBPOS *kbpos, PKT_secret_key *sk )
+{
+ PACKET pkt;
+ int rc;
+
+ init_packet( &pkt );
+ pkt.pkttype = PKT_SECRET_KEY;
+ pkt.pkt.secret_key = sk;
+ rc = search( &pkt, kbpos, 0 );
+ return rc;
+}
+
/****************
* Combined function to search for a username and get the position