From: Wouter Wijngaards Date: Tue, 17 Nov 2015 14:36:10 +0000 (+0000) Subject: Document ASN contents. X-Git-Tag: release-1.5.7rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb5a2d9eb5133951974a106868c7bf206aa3730;p=thirdparty%2Funbound.git Document ASN contents. git-svn-id: file:///svn/unbound/trunk@3542 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/validator/val_secalgo.c b/validator/val_secalgo.c index b06fe9766..7c8d7b287 100644 --- a/validator/val_secalgo.c +++ b/validator/val_secalgo.c @@ -1303,6 +1303,7 @@ _verify_nettle_dsa(sldns_buffer* buf, unsigned char* sigblock, nettle_mpz_set_str_256_u(signature.s, 20, sigblock+1+20); } else { /* DER encoded, decode the ASN1 notated R and S bignums */ + /* SEQUENCE { r INTEGER, s INTEGER } */ struct asn1_der_iterator i, seq; if(asn1_der_iterator_first(&i, sigblock_len, (uint8_t*)sigblock) != ASN1_ITERATOR_CONSTRUCTED