summaryrefslogtreecommitdiff
path: root/der2dsa.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2009-10-12 12:16:01 +0200
committerNiels Möller <nisse@lysator.liu.se>2009-10-12 12:16:01 +0200
commitbf34be550f1704df612613ba22fb06f1fc75cad1 (patch)
tree7c31f269efdcac724440c7a539adbca86a996335 /der2dsa.c
parente7442e18fcd2afbb91158c07ce5c22c48e3dc0e2 (diff)
downloadnettle-bf34be550f1704df612613ba22fb06f1fc75cad1.tar.gz
Fixed typo preventing compilation of dsa_private_key_from_der_iterator.
Rev: nettle/der2dsa.c:1.2
Diffstat (limited to 'der2dsa.c')
-rw-r--r--der2dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/der2dsa.c b/der2dsa.c
index 61529b48..de8b4c85 100644
--- a/der2dsa.c
+++ b/der2dsa.c
@@ -84,7 +84,7 @@ dsa_private_key_from_der_iterator(struct dsa_public_key *pub,
uint32_t version;
return (i->type == ASN1_SEQUENCE
- asn1_der_decode_constructed_last(i) == ASN1_ITERATOR_PRIMITIVE
+ && asn1_der_decode_constructed_last(i) == ASN1_ITERATOR_PRIMITIVE
&& i->type == ASN1_INTEGER
&& asn1_der_get_uint32(i, &version)
&& version == 0