"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lang/cpp/src/key.cpp" between
gpgme-1.15.0.tar.bz2 and gpgme-1.15.1.tar.bz2

About: GPGME (GnuPG Made Easy) is a library that provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management.

key.cpp  (gpgme-1.15.0.tar.bz2):key.cpp  (gpgme-1.15.1.tar.bz2)
skipping to change at line 870 skipping to change at line 870
{ {
} }
UserID::Signature::Signature(const shared_gpgme_key_t &k, gpgme_user_id_t u, gpg me_key_sig_t s) UserID::Signature::Signature(const shared_gpgme_key_t &k, gpgme_user_id_t u, gpg me_key_sig_t s)
: key(k), uid(verify_uid(k, u)), sig(verify_signature(uid, s)) : key(k), uid(verify_uid(k, u)), sig(verify_signature(uid, s))
{ {
} }
bool UserID::Signature::operator<(const Signature &other) bool UserID::Signature::operator<(const Signature &other)
{ {
// kept for binary compatibility
return static_cast<const UserID::Signature *>(this)->operator<(other);
}
bool UserID::Signature::operator<(const Signature &other) const
{
// based on cmp_signodes() in g10/keylist.c // based on cmp_signodes() in g10/keylist.c
// both signatures must belong to the same user ID // both signatures must belong to the same user ID
assert(uid == other.uid); assert(uid == other.uid);
// self-signatures are ordered first // self-signatures are ordered first
const char *primaryKeyId = parent().parent().keyID(); const char *primaryKeyId = parent().parent().keyID();
const bool thisIsSelfSignature = strcmp(signerKeyID(), primaryKeyId) == 0; const bool thisIsSelfSignature = strcmp(signerKeyID(), primaryKeyId) == 0;
const bool otherIsSelfSignature = strcmp(other.signerKeyID(), primaryKeyId) == 0; const bool otherIsSelfSignature = strcmp(other.signerKeyID(), primaryKeyId) == 0;
if (thisIsSelfSignature && !otherIsSelfSignature) { if (thisIsSelfSignature && !otherIsSelfSignature) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)