remove duplicate entry for oid_shaWithRSASignatureOiw, which resulted in the parallel array digestalg to be off. the parallel array should be eliminated. Reference: /n/atom/patch/applied/x509oiwfix Date: Sun Mar 16 17:06:05 CET 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/libsec/port/x509.c Sun Mar 16 17:05:16 2014 +++ /sys/src/libsec/port/x509.c Sun Mar 16 17:05:18 2014 @@ -1608,11 +1608,10 @@ (Ints*)&oid_sha1WithRSAEncryption, (Ints*)&oid_sha1WithRSAEncryptionOiw, (Ints*)&oid_sha256WithRSAEncryption, - (Ints*)&oid_shaWithRSASignatureOiw, (Ints*)&oid_md5, nil }; -static DigestFun digestalg[NUMALGS+1] = { md5, md5, md5, md5, sha1, sha1, md5, nil }; +static DigestFun digestalg[NUMALGS+1] = { md5, md5, md5, md5, sha1, sha1, sha2_256, md5, nil }; static void freecert(CertX509* c)