gpgme_op_createkey() is firing different errors in new gpgme versions
authorVolker Birk <vb@pep.foundation>
Sat, 04 Aug 2018 23:51:26 +0200
changeset 280159c46d9c9de3
parent 2788 bd1e854e98ad
child 2802 cdfc6bed129f
gpgme_op_createkey() is firing different errors in new gpgme versions
src/pgp_gpg.c
     1.1 --- a/src/pgp_gpg.c	Mon Jul 30 19:36:45 2018 +0200
     1.2 +++ b/src/pgp_gpg.c	Sat Aug 04 23:51:26 2018 +0200
     1.3 @@ -1305,11 +1305,8 @@
     1.4                      break;
     1.5                  case GPG_ERR_INV_VALUE:
     1.6                      return PEP_ILLEGAL_VALUE;
     1.7 -                case GPG_ERR_GENERAL:
     1.8 +                default:
     1.9                      return PEP_CANNOT_CREATE_KEY;
    1.10 -                default:
    1.11 -                    assert(0);
    1.12 -                    return PEP_UNKNOWN_ERROR;
    1.13              }
    1.14  
    1.15              /* This is the same regardless of whether we got it from genkey or createkey */