mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Use SHA256 instead of SHA-1 for Ncat temporary cert
This commit is contained in:
parent
74ad0a99cb
commit
b637304542
1 changed files with 1 additions and 1 deletions
|
|
@ -588,7 +588,7 @@ static int ssl_gen_cert(X509 **cert, EVP_PKEY **key)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Sign it. */
|
/* Sign it. */
|
||||||
if (X509_sign(*cert, *key, EVP_sha1()) == 0)
|
if (X509_sign(*cert, *key, EVP_sha256()) == 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue