[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/libkdenetwork/gpgmepp
From: Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date: 2004-05-03 11:27:25
Message-ID: 20040503112725.B75AE9A6E () office ! kde ! org
[Download RAW message or body]
CVS commit by mutz:
Add Key::primaryFingerprint() as a convenience. Equivalent to \
subkeys(0).fingerprint(), but without temporary subkey object creation.
M +8 -0 key.cpp 1.11
M +1 -0 key.h 1.9
--- kdepim/libkdenetwork/gpgmepp/key.cpp #1.10:1.11
@@ -249,4 +249,12 @@ namespace GpgME {
}
+ const char * Key::primaryFingerprint() const {
+#ifdef HAVE_GPGME_KEY_T_FPR
+ return d->key ? d->key->fpr : 0 ;
+#else
+ return d->key && d->key->subkeys ? d->key->subkeys->fpr : 0 ;
+#endif
+ }
+
unsigned int Key::keyListMode() const {
return d ? d->mode : 0 ;
--- kdepim/libkdenetwork/gpgmepp/key.h #1.8:1.9
@@ -95,4 +95,5 @@ namespace GpgME {
const char * keyID() const;
const char * shortKeyID() const;
+ const char * primaryFingerprint() const;
typedef Context::KeyListMode KeyListMode;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic