commit | 6f60cd848b6ed1d25bedf7804d6fee819edbde0d | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Feb 10 10:47:03 2015 +0000 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Feb 10 11:31:58 2015 +0000 |
tree | b02830bfa81715f200158a45a69fde2d98bbec2a | |
parent | 70dbfaa9ea144902b314c487188e73a41baa8b16 [diff] [blame] |
Move from SHA-1 to SHA-256 as default in programs
diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index eed12cf..7d68858 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c
@@ -209,7 +209,7 @@ * Set to sane values */ x509write_crt_init( &crt ); - x509write_crt_set_md_alg( &crt, POLARSSL_MD_SHA1 ); + x509write_crt_set_md_alg( &crt, POLARSSL_MD_SHA256 ); pk_init( &loaded_issuer_key ); pk_init( &loaded_subject_key ); mpi_init( &serial );