[9changes] patch: libsec-x509-sha256rsa

14 views
Skip to first unread message

9cha...@9grid.fr

unread,
Oct 26, 2014, 7:00:38 PM10/26/14
to 9cha...@googlegroups.com
Handle sha256WithRSAEncryption X.509 signature algorithm in libsec.

Reference: /n/sources/patch/libsec-x509-sha256rsa
Date: Sun Oct 26 23:26:38 CET 2014
Signed-off-by: d...@9grid.fr

--- /sys/src/libsec/port/x509.c Sun Oct 26 23:26:29 2014
+++ /sys/src/libsec/port/x509.c Sun Oct 26 23:29:51 2014
@@ -1582,6 +1582,7 @@
ALG_md5WithRSAEncryption,
ALG_sha1WithRSAEncryption,
ALG_sha1WithRSAEncryptionOiw,
+ ALG_sha256WithRSAEncryption,
ALG_md5,
NUMALGS
};
@@ -1594,6 +1595,7 @@
static Ints7 oid_md4WithRSAEncryption = {7, 1, 2, 840, 113549, 1, 1, 3 };
static Ints7 oid_md5WithRSAEncryption = {7, 1, 2, 840, 113549, 1, 1, 4 };
static Ints7 oid_sha1WithRSAEncryption ={7, 1, 2, 840, 113549, 1, 1, 5 };
+static Ints7 oid_sha256WithRSAEncryption ={7, 1, 2, 840, 113549, 1, 1, 11 };
static Ints7 oid_sha1WithRSAEncryptionOiw ={6, 1, 3, 14, 3, 2, 29 };
static Ints7 oid_md5 ={6, 1, 2, 840, 113549, 2, 5, 0 };
static Ints *alg_oid_tab[NUMALGS+1] = {
@@ -1602,6 +1604,7 @@
(Ints*)&oid_md4WithRSAEncryption,
(Ints*)&oid_md5WithRSAEncryption,
(Ints*)&oid_sha1WithRSAEncryption,
+ (Ints*)&oid_sha256WithRSAEncryption,
(Ints*)&oid_sha1WithRSAEncryptionOiw,
(Ints*)&oid_md5,
nil
Reply all
Reply to author
Forward
0 new messages