From db921e48f189ad44996642f6c9834d681777af27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 27 Jul 2005 21:07:15 +0000 Subject: [PATCH] add DER NULL to the digest oid's git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15801 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/crypto.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/hx509/crypto.c b/lib/hx509/crypto.c index 8c654ea3d..c914bc781 100644 --- a/lib/hx509/crypto.c +++ b/lib/hx509/crypto.c @@ -765,19 +765,21 @@ _hx509_parse_private_key(const heim_oid *key_oid, * */ +static const heim_octet_string null_entry_oid = { 2, "\x05\x00" }; + static const unsigned sha1_oid_tree[] = { 1, 3, 14, 3, 2, 26 }; const AlgorithmIdentifier _hx509_signature_sha1_data = { - { 6, rk_UNCONST(sha1_oid_tree) }, NULL + { 6, rk_UNCONST(sha1_oid_tree) }, &null_entry_oid }; static const unsigned md5_oid_tree[] = { 1, 2, 840, 113549, 2, 5 }; const AlgorithmIdentifier _hx509_signature_md5_data = { - { 6, rk_UNCONST(md5_oid_tree) }, NULL + { 6, rk_UNCONST(md5_oid_tree) }, &null_entry_oid }; static const unsigned md2_oid_tree[] = { 1, 2, 840, 113549, 2, 2 }; const AlgorithmIdentifier _hx509_signature_md2_data = { - { 6, rk_UNCONST(md2_oid_tree) }, NULL + { 6, rk_UNCONST(md2_oid_tree) }, &null_entry_oid }; static const unsigned rsa_with_sha1_oid[] ={ 1, 2, 840, 113549, 1, 1, 5 };