aboutsummaryrefslogtreecommitdiffstats
path: root/sm/certreqgen.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-03-25 09:12:11 +0000
committerWerner Koch <[email protected]>2015-03-25 09:12:11 +0000
commit1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0 (patch)
tree905025099b2295123493dfcaab9eddeaf236659d /sm/certreqgen.c
parentgpg,w32: Handle forward slash in --keyring option. (diff)
downloadgnupg-1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0.tar.gz
gnupg-1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0.zip
sm: Change default algos to SHA256 (CSR) and AES128 (bulk encryption).
* sm/certreqgen.c (create_request): Change default hash algo. * sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change default bulk cipher algo. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/certreqgen.c')
-rw-r--r--sm/certreqgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/certreqgen.c b/sm/certreqgen.c
index 9720b80e2..0774591ba 100644
--- a/sm/certreqgen.c
+++ b/sm/certreqgen.c
@@ -807,7 +807,7 @@ create_request (ctrl_t ctrl,
if (string)
mdalgo = gcry_md_map_name (string);
else
- mdalgo = GCRY_MD_SHA1;
+ mdalgo = GCRY_MD_SHA256;
rc = gcry_md_open (&md, mdalgo, 0);
if (rc)
{