projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aebf73f
)
px5g: Use SHA-256 when generating self-signed certificates
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 6 Nov 2015 10:52:52 +0000
(10:52 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 6 Nov 2015 10:52:52 +0000
(10:52 +0000)
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 47391
package/utils/px5g/px5g.c
patch
|
blob
|
history
diff --git
a/package/utils/px5g/px5g.c
b/package/utils/px5g/px5g.c
index eec8fd3f514864dac98aaa15e45547d37fec12be..d662232021c5ebd19270b956a6c30d15bf6759c7 100644
(file)
--- a/
package/utils/px5g/px5g.c
+++ b/
package/utils/px5g/px5g.c
@@
-212,7
+212,7
@@
int selfsigned(char **arg)
" and validity %s-%s\n", subject, fstr, tstr);
x509write_crt_init(&cert);
- x509write_crt_set_md_alg(&cert, POLARSSL_MD_SHA
1
);
+ x509write_crt_set_md_alg(&cert, POLARSSL_MD_SHA
256
);
x509write_crt_set_issuer_key(&cert, &key);
x509write_crt_set_subject_key(&cert, &key);
x509write_crt_set_subject_name(&cert, subject);