mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Move from SHA-1 to SHA-256 as default in programs
This commit is contained in:
parent
70dbfaa9ea
commit
6f60cd848b
11 changed files with 58 additions and 56 deletions
|
|
@ -149,7 +149,7 @@ int main( int argc, char *argv[] )
|
|||
* Set to sane values
|
||||
*/
|
||||
x509write_csr_init( &req );
|
||||
x509write_csr_set_md_alg( &req, POLARSSL_MD_SHA1 );
|
||||
x509write_csr_set_md_alg( &req, POLARSSL_MD_SHA256 );
|
||||
pk_init( &key );
|
||||
memset( buf, 0, sizeof( buf ) );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue