gpg: Improve error message for --quick-gen-key.
authorWerner Koch <wk@gnupg.org>
Thu, 10 Nov 2016 11:18:33 +0000 (12:18 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 10 Nov 2016 11:18:33 +0000 (12:18 +0100)
* g10/keygen.c (parse_algo_usage_expire): Use a different error
message for an unknown algorithm name.
--

GnuPG-bug-id: 2832
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keygen.c

index e3cf818..b424c98 100644 (file)
@@ -4532,7 +4532,7 @@ parse_algo_usage_expire (ctrl_t ctrl, int for_subkey,
         use = PUBKEY_USAGE_ENC;
     }
   else
-    return gpg_error (GPG_ERR_INV_CURVE);
+    return gpg_error (GPG_ERR_UNKNOWN_CURVE);
 
   /* Parse the usage string.  */
   if (!usagestr || !*usagestr