aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-09-18 10:17:16 +0000
committerWerner Koch <[email protected]>1999-09-18 10:17:16 +0000
commit24ae98041f4d2698f33758438881c5b2519c5bec (patch)
treee14bd46d1cc36443908b734a66f996b3cadd8b3e /g10/misc.c
parentSetup development branch (diff)
downloadgnupg-24ae98041f4d2698f33758438881c5b2519c5bec.tar.gz
gnupg-24ae98041f4d2698f33758438881c5b2519c5bec.zip
See ChangeLog: Sat Sep 18 12:16:08 CEST 1999 Werner Koch
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c
index 3f18183b5..61f104a01 100644
--- a/g10/misc.c
+++ b/g10/misc.c
@@ -253,3 +253,15 @@ print_digest_algo_note( int algo )
+/****************
+ * Map errors retuned by libgcrypt to those used by GnuPG.
+ */
+int
+map_gcry_rc( int rc )
+{
+ switch( rc ) {
+ case 0: return 0;
+ default: return G10ERR_GENERAL;
+ }
+}
+