Page MenuHome GnuPG

No OneTemporary

This document is not UTF8. It was detected as Shift JIS and converted to UTF8 for display.
diff --git a/key.h b/key.h
index 4643f424..9893c0b8 100644
--- a/key.h
+++ b/key.h
@@ -1,297 +1,284 @@
/* key.h - wraps a gpgme key
Copyright (C) 2003 Klar舁vdalens Datakonsult AB
This file is part of GPGME++.
GPGME++ is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GPGME++ is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GPGME; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA. */
// -*- c++ -*-
#ifndef __GPGMEPP_KEY_H__
#define __GPGMEPP_KEY_H__
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <gpgmepp/gpgmefw.h>
#include <gpgmepp/context.h>
-#ifdef TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
-#endif
+#include <sys/time.h>
#include <vector>
namespace GpgME {
class Subkey;
class UserID;
//
// class Key
//
class Key {
friend class Context;
public:
Key();
Key( gpgme_key_t key, bool acquireRef, unsigned int keyListMode=0 );
Key( const Key & key );
~Key();
static Key null;
const Key & operator=( const Key & other );
bool isNull() const;
UserID userID( unsigned int index ) const;
Subkey subkey( unsigned int index ) const;
unsigned int numUserIDs() const;
unsigned int numSubkeys() const;
std::vector<UserID> userIDs() const;
std::vector<Subkey> subkeys() const;
bool isRevoked() const;
bool isExpired() const;
bool isDisabled() const;
bool isInvalid() const;
bool canEncrypt() const;
bool canSign() const;
bool canCertify() const;
bool canAuthenticate() const;
bool hasSecret() const;
bool isSecret() const { return hasSecret(); }
/*!
@return true if this is a X.509 root certificate (currently
equivalent to something like
strcmp( chainID(), subkey(0).fingerprint() ) == 0 )
*/
bool isRoot() const;
enum OwnerTrust { Unknown=0, Undefined=1, Never=2,
Marginal=3, Full=4, Ultimate=5 };
OwnerTrust ownerTrust() const;
char ownerTrustAsString() const;
typedef Context::Protocol Protocol;
Protocol protocol() const;
const char * protocolAsString() const;
const char * issuerSerial() const;
const char * issuerName() const;
const char * chainID() const;
const char * keyID() const;
const char * shortKeyID() const;
const char * primaryFingerprint() const;
typedef Context::KeyListMode KeyListMode;
unsigned int keyListMode() const;
private:
gpgme_key_t impl() const;
class Private;
Private * d;
};
//
// class Subkey
//
class Subkey {
public:
Subkey( gpgme_key_t key=0, gpgme_sub_key_t subkey=0 );
Subkey( gpgme_key_t key, unsigned int idx );
Subkey( const Subkey & other );
~Subkey();
const Subkey & operator=( const Subkey & other );
bool isNull() const;
Key parent() const;
const char * keyID() const;
const char * fingerprint() const;
time_t creationTime() const;
time_t expirationTime() const;
bool neverExpires() const;
bool isRevoked() const;
bool isExpired() const;
bool isInvalid() const;
bool isDisabled() const;
bool canEncrypt() const;
bool canSign() const;
bool canCertify() const;
bool canAuthenticate() const;
bool isSecred() const;
unsigned int publicKeyAlgorithm() const;
const char * publicKeyAlgorithmAsString() const;
unsigned int length() const;
private:
class Private;
Private * d;
};
//
// class UserID
//
class UserID {
public:
class Signature;
UserID( gpgme_key_t key=0, gpgme_user_id_t uid=0 );
UserID( gpgme_key_t key, unsigned int idx );
UserID( const UserID & other );
~UserID();
const UserID & operator=( const UserID & other );
bool isNull() const;
Key parent() const;
unsigned int numSignatures() const;
Signature signature( unsigned int index ) const;
std::vector<Signature> signatures() const;
const char * id() const;
const char * name() const;
const char * email() const;
const char * comment() const;
enum Validity { Unknown=0, Undefined=1, Never=2,
Marginal=3, Full=4, Ultimate=5 };
Validity validity() const;
char validityAsString() const;
bool isRevoked() const;
bool isInvalid() const;
private:
class Private;
Private * d;
};
//
// class UserID::Signature
//
class UserID::Signature {
public:
class Notation;
Signature( gpgme_key_t key=0, gpgme_user_id_t uid=0, gpgme_key_sig_t sig=0 );
Signature( gpgme_key_t key, gpgme_user_id_t uid, unsigned int idx );
Signature( const Signature & other );
~Signature();
const Signature & operator=( const Signature & other );
bool isNull() const;
UserID parent() const;
const char * signerKeyID() const;
const char * algorithmAsString() const;
unsigned int algorithm() const;
time_t creationTime() const;
time_t expirationTime() const;
bool neverExpires() const;
bool isRevokation() const;
bool isInvalid() const;
bool isExpired() const;
bool isExportable() const;
const char * signerUserID() const;
const char * signerName() const;
const char * signerEmail() const;
const char * signerComment() const;
unsigned int certClass() const;
enum Status { NoError = 0, SigExpired, KeyExpired,
BadSignature, NoPublicKey, GeneralError };
Status status() const;
const char * statusAsString() const;
const char * policyURL() const;
unsigned int numNotations() const;
Notation notation( unsigned int idx ) const;
std::vector<Notation> notations() const;
private:
class Private;
Private * d;
};
//
//
// class UserID::Signature::Notation
//
//
class UserID::Signature::Notation {
public:
Notation( gpgme_key_t key=0, gpgme_user_id_t uid=0,
gpgme_key_sig_t sig=0, gpgme_sig_notation_t nota=0 );
Notation( gpgme_key_t key, gpgme_user_id_t uid,
gpgme_key_sig_t sig, unsigned int idx );
Notation( const Notation & other );
~Notation();
const Notation & operator=( const Notation & other );
bool isNull() const;
Signature parent() const;
const char * name() const;
const char * value() const;
private:
class Private;
Private * d;
};
} // namespace GpgME
#endif // __GPGMEPP_KEY_H__
diff --git a/signingresult.h b/signingresult.h
index 30503930..a218f553 100644
--- a/signingresult.h
+++ b/signingresult.h
@@ -1,128 +1,115 @@
/* signingresult.h - wraps a gpgme sign result
Copyright (C) 2004 Klar舁vdalens Datakonsult AB
This file is part of GPGME++.
GPGME++ is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GPGME++ is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GPGME++; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
*/
#ifndef __GPGMEPP_SIGNINGRESULT_H__
#define __GPGMEPP_SIGNINGRESULT_H__
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <gpgmepp/gpgmefw.h>
#include <gpgmepp/result.h>
#include <gpgmepp/context.h>
-#ifdef TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
-#endif
+#include <time.h>
#include <vector>
namespace GpgME {
class Error;
class CreatedSignature;
class InvalidSigningKey;
class SigningResult : public Result {
public:
SigningResult( gpgme_ctx_t ctx=0, int error=0 );
explicit SigningResult( const Error & err );
SigningResult( const SigningResult & other );
~SigningResult();
const SigningResult & operator=( const SigningResult & other );
bool isNull() const;
CreatedSignature createdSignature( unsigned int index ) const;
std::vector<CreatedSignature> createdSignatures() const;
InvalidSigningKey invalidSigningKey( unsigned int index ) const;
std::vector<InvalidSigningKey> invalidSigningKeys() const;
class Private;
private:
Private * d;
};
class InvalidSigningKey {
friend class SigningResult;
InvalidSigningKey( SigningResult::Private * parent, unsigned int index );
public:
InvalidSigningKey();
InvalidSigningKey( const InvalidSigningKey & other );
~InvalidSigningKey();
const InvalidSigningKey & operator=( const InvalidSigningKey & other );
bool isNull() const;
const char * fingerprint() const;
Error reason() const;
private:
SigningResult::Private * d;
unsigned int idx;
};
class CreatedSignature {
friend class SigningResult;
CreatedSignature( SigningResult::Private * parent, unsigned int index );
public:
class Notation;
CreatedSignature();
CreatedSignature( const CreatedSignature & other );
~CreatedSignature();
const CreatedSignature & operator=( const CreatedSignature & other );
bool isNull() const;
const char * fingerprint() const;
time_t creationTime() const;
Context::SignatureMode mode() const;
unsigned int publicKeyAlgorithm() const;
const char * publicKeyAlgorithmAsString() const;
unsigned int hashAlgorithm() const;
const char * hashAlgorithmAsString() const;
unsigned int signatureClass() const;
private:
SigningResult::Private * d;
unsigned int idx;
};
}
#endif // __GPGMEPP_SIGNINGRESULT_H__
diff --git a/verificationresult.h b/verificationresult.h
index cf98d26d..48589e42 100644
--- a/verificationresult.h
+++ b/verificationresult.h
@@ -1,147 +1,134 @@
/* verificationresult.h - wraps a gpgme verify result
Copyright (C) 2004 Klar舁vdalens Datakonsult AB
This file is part of GPGME++.
GPGME++ is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GPGME++ is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GPGME++; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
*/
#ifndef __GPGMEPP_VERIFICATIONRESULT_H__
#define __GPGMEPP_VERIFICATIONRESULT_H__
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <gpgmepp/gpgmefw.h>
#include <gpgmepp/result.h>
-#ifdef TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
-#endif
+#include <time.h>
#include <vector>
namespace GpgME {
class Error;
class Signature;
class VerificationResult : public Result {
public:
VerificationResult( gpgme_ctx_t ctx=0, int error=0 );
explicit VerificationResult( const Error & err );
VerificationResult( const VerificationResult & other );
~VerificationResult();
const VerificationResult & operator=( const VerificationResult & other );
bool isNull() const;
Signature signature( unsigned int index ) const;
std::vector<Signature> signatures() const;
class Private;
private:
Private * d;
};
class Signature {
friend class VerificationResult;
Signature( VerificationResult::Private * parent, unsigned int index );
public:
class Notation;
Signature();
Signature( const Signature & other );
~Signature();
const Signature & operator=( const Signature & other );
bool isNull() const;
enum Summary {
None = 0x000,
Valid = 0x001,
Green = 0x002,
Red = 0x004,
KeyRevoked = 0x008,
KeyExpired = 0x010,
SigExpired = 0x020,
KeyMissing = 0x040,
CrlMissing = 0x080,
CrlTooOld = 0x100,
BadPolicy = 0x200,
SysError = 0x400
};
Summary summary() const;
const char * fingerprint() const;
Error status() const;
time_t creationTime() const;
time_t expirationTime() const;
bool neverExpires() const;
bool wrongKeyUsage() const;
enum Validity {
Unknown, Undefined, Never, Marginal, Full, Ultimate
};
Validity validity() const;
char validityAsString() const;
Error nonValidityReason() const;
Notation notation( unsigned int index ) const;
std::vector<Notation> notations() const;
private:
VerificationResult::Private * d;
unsigned int idx;
};
class Signature::Notation {
friend class Signature;
Notation( VerificationResult::Private * parent, unsigned int sindex, unsigned int nindex );
public:
Notation();
Notation( const Notation & other );
~Notation();
const Notation & operator=( const Notation & other );
bool isNull() const;
const char * name() const;
const char * value() const;
private:
VerificationResult::Private * d;
unsigned int sidx;
unsigned int nidx;
};
}
#endif // __GPGMEPP_VERIFICATIONRESULT_H__

File Metadata

Mime Type
text/x-diff
Expires
Sat, Feb 1, 9:16 AM (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ac/fe/5c03e23a8430b43dedc1de4a9f2d

Event Timeline