summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-07-07 13:36:16 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-07-07 13:36:16 +0200
commita21a9bba32948860ac7e19b2969282c0abf5e9eb (patch)
tree6d019d7d6b1d8b5c31c015162bbfd3ec9d7a7916 /src
parent839bab44cdc586526e85b3b3f11fd2afdfbdb879 (diff)
downloadgnutls-a21a9bba32948860ac7e19b2969282c0abf5e9eb.tar.gz
p11tool: only print warning about key sizes in RSA keys
Diffstat (limited to 'src')
-rw-r--r--src/pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index 126cbb9293..de91f43cf6 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -564,7 +564,7 @@ pkcs11_generate(FILE * outfile, const char *url, gnutls_pk_algorithm_t pk,
if (ret < 0) {
fprintf(stderr, "Error in %s:%d: %s\n", __func__, __LINE__,
gnutls_strerror(ret));
- if (bits != 1024)
+ if (bits != 1024 && pk == GNUTLS_PK_RSA)
fprintf(stderr,
"note: several smart cards do not support arbitrary size keys; try --bits 1024 or 2048.\n");
exit(1);