diff options
| author | Werner Koch <[email protected]> | 2003-06-03 19:55:50 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2003-06-03 19:55:50 +0000 |
| commit | c3cdaeeff72486e52118054d92ac518c17aa3812 (patch) | |
| tree | 7abfa77336a37f8f02526498c4f77fba33b965bf /sm/gpgsm.h | |
| parent | * options.h, g10.c (main), keylist.c (list_keyblock_print): Add (diff) | |
| download | gnupg-c3cdaeeff72486e52118054d92ac518c17aa3812.tar.gz gnupg-c3cdaeeff72486e52118054d92ac518c17aa3812.zip | |
Make use of libgpg-error
Diffstat (limited to 'sm/gpgsm.h')
| -rw-r--r-- | sm/gpgsm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h index dd91e3764..72abccac9 100644 --- a/sm/gpgsm.h +++ b/sm/gpgsm.h @@ -1,5 +1,5 @@ /* gpgsm.h - Global definitions for GpgSM - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2003 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -21,10 +21,18 @@ #ifndef GPGSM_H #define GPGSM_H +#ifdef GPG_ERR_SOURCE_DEFAULT +#error GPG_ERR_SOURCE_DEFAULT already defined +#endif +#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGSM +#include <gpg-error.h> + #include <ksba.h> #include "../common/util.h" #include "../common/errors.h" +#define OUT_OF_CORE(a) (gpg_error (gpg_err_code_from_errno ((a)))) + #define MAX_DIGEST_LEN 24 /* A large struct name "opt" to keep global flags */ |
