~ubuntu-branches/ubuntu/vivid/gnupg2/vivid-proposed

« back to all changes in this revision

Viewing changes to g10/gpg.h

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-05-24 18:27:04 UTC
  • mfrom: (18.1.2 ubuntu)
  • Revision ID: package-import@ubuntu.com-20130524182704-d9uwh9lrj91elnm6
* Resynchronize on Debian, remaining changes:
  - Add udev rules to give gpg access to some smartcard readers;
    Debian #543217.
    . debian/gnupg2.udev: udev rules to set ACLs on SCM smartcard readers.
  - Add upstart user job for gpg-agent.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18
18
 */
19
19
#ifndef GNUPG_G10_GPG_H
20
 
#define GNUPG_G10_GPG_H 
 
20
#define GNUPG_G10_GPG_H
21
21
 
22
22
/* Note, that this file should be the first one after the system
23
23
   header files.  This is required to set the error source to the
41
41
#define MAX_FINGERPRINT_LEN 20
42
42
 
43
43
 
44
 
/* 
45
 
   Forward declarations. 
 
44
/*
 
45
   Forward declarations.
46
46
 */
47
47
 
48
48
/* Object used to keep state locally to server.c . */
67
67
 
68
68
 
69
69
 
70
 
/* 
 
70
/*
71
71
     Compatibility stuff to be faded out over time.
72
72
 */
73
73
 
78
78
/* Mapping of the old error codes to the gpg-error ones.  Fixme: This
79
79
   is just a temporary solution: We need to do all these gpg_error()
80
80
   calls in the code.  */
81
 
#define G10ERR_BAD_KEY         GPG_ERR_BAD_KEY          
82
 
#define G10ERR_BAD_PASS        GPG_ERR_BAD_PASS         
83
 
#define G10ERR_BAD_PUBKEY      GPG_ERR_BAD_PUBKEY       
 
81
#define G10ERR_BAD_KEY         GPG_ERR_BAD_KEY
 
82
#define G10ERR_BAD_PASS        GPG_ERR_BAD_PASS
 
83
#define G10ERR_BAD_PUBKEY      GPG_ERR_BAD_PUBKEY
84
84
#define G10ERR_BAD_SIGN        GPG_ERR_BAD_SIGNATURE
85
 
#define G10ERR_BAD_URI         GPG_ERR_BAD_URI          
86
 
#define G10ERR_CHECKSUM        GPG_ERR_CHECKSUM         
87
 
#define G10ERR_CIPHER_ALGO     GPG_ERR_CIPHER_ALGO      
88
 
#define G10ERR_CLOSE_FILE      GPG_ERR_CLOSE_FILE       
89
 
#define G10ERR_COMPR_ALGO      GPG_ERR_COMPR_ALGO       
90
 
#define G10ERR_CREATE_FILE     GPG_ERR_CREATE_FILE      
91
 
#define G10ERR_DIGEST_ALGO     GPG_ERR_DIGEST_ALGO      
 
85
#define G10ERR_BAD_URI         GPG_ERR_BAD_URI
 
86
#define G10ERR_CHECKSUM        GPG_ERR_CHECKSUM
 
87
#define G10ERR_CIPHER_ALGO     GPG_ERR_CIPHER_ALGO
 
88
#define G10ERR_CLOSE_FILE      GPG_ERR_CLOSE_FILE
 
89
#define G10ERR_COMPR_ALGO      GPG_ERR_COMPR_ALGO
 
90
#define G10ERR_CREATE_FILE     GPG_ERR_CREATE_FILE
 
91
#define G10ERR_DIGEST_ALGO     GPG_ERR_DIGEST_ALGO
92
92
#define G10ERR_FILE_EXISTS     GPG_ERR_EEXIST
93
 
#define G10ERR_GENERAL         GPG_ERR_GENERAL          
94
 
#define G10ERR_INV_ARG         GPG_ERR_INV_ARG          
95
 
#define G10ERR_INV_KEYRING     GPG_ERR_INV_KEYRING      
96
 
#define G10ERR_INV_USER_ID     GPG_ERR_INV_USER_ID      
97
 
#define G10ERR_INVALID_ARMOR   GPG_ERR_INV_ARMOR    
98
 
#define G10ERR_INVALID_PACKET  GPG_ERR_INV_PACKET   
99
 
#define G10ERR_KEYRING_OPEN    GPG_ERR_KEYRING_OPEN     
100
 
#define G10ERR_KEYSERVER       GPG_ERR_KEYSERVER        
101
 
#define G10ERR_NO_DATA         GPG_ERR_NO_DATA          
102
 
#define G10ERR_NO_PUBKEY       GPG_ERR_NO_PUBKEY        
103
 
#define G10ERR_NO_SECKEY       GPG_ERR_NO_SECKEY        
104
 
#define G10ERR_NO_USER_ID      GPG_ERR_NO_USER_ID       
105
 
#define G10ERR_NOT_PROCESSED   GPG_ERR_NOT_PROCESSED    
106
 
#define G10ERR_OPEN_FILE       GPG_ERR_OPEN_FILE        
107
 
#define G10ERR_PASSPHRASE      GPG_ERR_PASSPHRASE       
108
 
#define G10ERR_PUBKEY_ALGO     GPG_ERR_PUBKEY_ALGO      
109
 
#define G10ERR_READ_FILE       GPG_ERR_READ_FILE        
110
 
#define G10ERR_RENAME_FILE     GPG_ERR_RENAME_FILE      
111
 
#define G10ERR_RESOURCE_LIMIT  GPG_ERR_RESOURCE_LIMIT   
112
 
#define G10ERR_SIG_CLASS       GPG_ERR_SIG_CLASS        
113
 
#define G10ERR_TIME_CONFLICT   GPG_ERR_TIME_CONFLICT    
114
 
#define G10ERR_TRUSTDB         GPG_ERR_TRUSTDB          
115
 
#define G10ERR_UNEXPECTED      GPG_ERR_UNEXPECTED       
116
 
#define G10ERR_UNKNOWN_PACKET  GPG_ERR_UNKNOWN_PACKET   
117
 
#define G10ERR_UNSUPPORTED     GPG_ERR_UNSUPPORTED      
118
 
#define G10ERR_UNU_PUBKEY      GPG_ERR_UNUSABLE_PUBKEY       
119
 
#define G10ERR_UNU_SECKEY      GPG_ERR_UNUSABLE_SECKEY       
120
 
#define G10ERR_WRONG_SECKEY    GPG_ERR_WRONG_SECKEY        
 
93
#define G10ERR_GENERAL         GPG_ERR_GENERAL
 
94
#define G10ERR_INV_ARG         GPG_ERR_INV_ARG
 
95
#define G10ERR_INV_KEYRING     GPG_ERR_INV_KEYRING
 
96
#define G10ERR_INV_USER_ID     GPG_ERR_INV_USER_ID
 
97
#define G10ERR_INVALID_ARMOR   GPG_ERR_INV_ARMOR
 
98
#define G10ERR_INVALID_PACKET  GPG_ERR_INV_PACKET
 
99
#define G10ERR_KEYRING_OPEN    GPG_ERR_KEYRING_OPEN
 
100
#define G10ERR_KEYSERVER       GPG_ERR_KEYSERVER
 
101
#define G10ERR_NO_DATA         GPG_ERR_NO_DATA
 
102
#define G10ERR_NO_PUBKEY       GPG_ERR_NO_PUBKEY
 
103
#define G10ERR_NO_SECKEY       GPG_ERR_NO_SECKEY
 
104
#define G10ERR_NO_USER_ID      GPG_ERR_NO_USER_ID
 
105
#define G10ERR_NOT_PROCESSED   GPG_ERR_NOT_PROCESSED
 
106
#define G10ERR_OPEN_FILE       GPG_ERR_OPEN_FILE
 
107
#define G10ERR_PASSPHRASE      GPG_ERR_PASSPHRASE
 
108
#define G10ERR_PUBKEY_ALGO     GPG_ERR_PUBKEY_ALGO
 
109
#define G10ERR_READ_FILE       GPG_ERR_READ_FILE
 
110
#define G10ERR_RENAME_FILE     GPG_ERR_RENAME_FILE
 
111
#define G10ERR_RESOURCE_LIMIT  GPG_ERR_RESOURCE_LIMIT
 
112
#define G10ERR_SIG_CLASS       GPG_ERR_SIG_CLASS
 
113
#define G10ERR_TIME_CONFLICT   GPG_ERR_TIME_CONFLICT
 
114
#define G10ERR_TRUSTDB         GPG_ERR_TRUSTDB
 
115
#define G10ERR_UNEXPECTED      GPG_ERR_UNEXPECTED
 
116
#define G10ERR_UNKNOWN_PACKET  GPG_ERR_UNKNOWN_PACKET
 
117
#define G10ERR_UNSUPPORTED     GPG_ERR_NOT_SUPPORTED
 
118
#define G10ERR_UNU_PUBKEY      GPG_ERR_UNUSABLE_PUBKEY
 
119
#define G10ERR_UNU_SECKEY      GPG_ERR_UNUSABLE_SECKEY
 
120
#define G10ERR_WRONG_SECKEY    GPG_ERR_WRONG_SECKEY
121
121
 
122
122
#endif /*GNUPG_G10_GPG_H*/