~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to common/errors.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* errors.h - Globally used error codes
2
 
 *      Copyright (C) 2001 Free Software Foundation, Inc.
3
 
 *
4
 
 * This file is part of GnuPG.
5
 
 *
6
 
 * GnuPG is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * GnuPG is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
 
 */
20
 
 
21
 
#ifndef GNUPG_COMMON_ERRORS_H
22
 
#define GNUPG_COMMON_ERRORS_H
23
 
 
24
 
#include "util.h"
25
 
 
26
 
/* Status codes - fixme: should go into another file */
27
 
enum {
28
 
  STATUS_ENTER,
29
 
  STATUS_LEAVE,
30
 
  STATUS_ABORT,
31
 
  STATUS_GOODSIG,
32
 
  STATUS_BADSIG,
33
 
  STATUS_ERRSIG,
34
 
  STATUS_BADARMOR,
35
 
  STATUS_RSA_OR_IDEA,
36
 
  STATUS_SIGEXPIRED,
37
 
  STATUS_KEYREVOKED,
38
 
  STATUS_TRUST_UNDEFINED,
39
 
  STATUS_TRUST_NEVER,
40
 
  STATUS_TRUST_MARGINAL,
41
 
  STATUS_TRUST_FULLY,
42
 
  STATUS_TRUST_ULTIMATE,
43
 
  
44
 
  STATUS_SHM_INFO,
45
 
  STATUS_SHM_GET,
46
 
  STATUS_SHM_GET_BOOL,
47
 
  STATUS_SHM_GET_HIDDEN,
48
 
  
49
 
  STATUS_NEED_PASSPHRASE,
50
 
  STATUS_VALIDSIG,
51
 
  STATUS_SIG_ID,
52
 
  STATUS_ENC_TO,
53
 
  STATUS_NODATA,
54
 
  STATUS_BAD_PASSPHRASE,
55
 
  STATUS_NO_PUBKEY,
56
 
  STATUS_NO_SECKEY,
57
 
  STATUS_NEED_PASSPHRASE_SYM,
58
 
  STATUS_DECRYPTION_FAILED,
59
 
  STATUS_DECRYPTION_OKAY,
60
 
  STATUS_MISSING_PASSPHRASE,
61
 
  STATUS_GOOD_PASSPHRASE,
62
 
  STATUS_GOODMDC,
63
 
  STATUS_BADMDC,
64
 
  STATUS_ERRMDC,
65
 
  STATUS_IMPORTED,
66
 
  STATUS_IMPORT_OK,
67
 
  STATUS_IMPORT_PROBLEM,
68
 
  STATUS_IMPORT_RES,
69
 
  STATUS_FILE_START,
70
 
  STATUS_FILE_DONE,
71
 
  STATUS_FILE_ERROR,
72
 
  
73
 
  STATUS_BEGIN_DECRYPTION,
74
 
  STATUS_END_DECRYPTION,
75
 
  STATUS_BEGIN_ENCRYPTION,
76
 
  STATUS_END_ENCRYPTION,
77
 
  
78
 
  STATUS_DELETE_PROBLEM,
79
 
  STATUS_GET_BOOL,
80
 
  STATUS_GET_LINE,
81
 
  STATUS_GET_HIDDEN,
82
 
  STATUS_GOT_IT,
83
 
  STATUS_PROGRESS,
84
 
  STATUS_SIG_CREATED,
85
 
  STATUS_SESSION_KEY,
86
 
  STATUS_NOTATION_NAME,
87
 
  STATUS_NOTATION_DATA,
88
 
  STATUS_POLICY_URL,
89
 
  STATUS_BEGIN_STREAM,
90
 
  STATUS_END_STREAM,
91
 
  STATUS_KEY_CREATED,
92
 
  STATUS_USERID_HIN,
93
 
  STATUS_UNEXPECTED,
94
 
  STATUS_INV_RECP,
95
 
  STATUS_NO_RECP,
96
 
  STATUS_ALREADY_SIGNED,
97
 
 
98
 
  STATUS_EXPSIG,
99
 
  STATUS_EXPKEYSIG,
100
 
 
101
 
  STATUS_TRUNCATED,
102
 
  STATUS_ERROR,
103
 
  STATUS_NEWSIG
104
 
};
105
 
 
106
 
 
107
 
/*-- errors.c (build by mkerror and mkerrtok) --*/
108
 
const char *gnupg_strerror (int err);
109
 
const char *gnupg_error_token (int err);
110
 
 
111
 
 
112
 
#endif /*GNUPG_COMMON_ERRORS_H*/