summaryrefslogtreecommitdiffstats
path: root/g10/pkglue.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2020-06-23 03:10:29 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2020-06-23 03:10:29 +0200
commitc94eea15d6847c08d2d9ff1c7608953f25fea67d (patch)
tree5f7568a7e6bdde48a2ddb677172e210ef904c803 /g10/pkglue.c
parentagent: Use get_pk_algo_from_key. (diff)
downloadgnupg2-c94eea15d6847c08d2d9ff1c7608953f25fea67d.tar.xz
gnupg2-c94eea15d6847c08d2d9ff1c7608953f25fea67d.zip
ecc: Use "cv448" to specify key using X448.
* common/openpgp-oid.c (oidtable): Use "cv448". (oid_cv448): Rename from oid_x448. (openpgp_oidbuf_is_cv448, openpgp_oid_is_cv448): Likewise. * common/util.h (openpgp_oid_is_cv448): Follow the change. * g10/ecdh.c (pk_ecdh_generate_ephemeral_key): Likewise. * g10/keygen.c (gen_ecc, ask_algo): Use "cv448". (parse_key_parameter_part): Likewise. * g10/pkglue.c (get_data_from_sexp): Fix for debug output. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/pkglue.c')
-rw-r--r--g10/pkglue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/pkglue.c b/g10/pkglue.c
index a659a5b06..eda13009b 100644
--- a/g10/pkglue.c
+++ b/g10/pkglue.c
@@ -106,7 +106,8 @@ get_data_from_sexp (gcry_sexp_t sexp, const char *item, size_t *r_size)
const char *value;
byte *v;
- log_printsexp ("get_data_from_sexp:", sexp);
+ if (DBG_CRYPTO)
+ log_printsexp ("get_data_from_sexp:", sexp);
list = gcry_sexp_find_token (sexp, item, 0);
log_assert (list);