summaryrefslogtreecommitdiff
path: root/sexp2rsa.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-10-06 23:13:41 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-10-06 23:13:41 +0200
commit6d28e270f78092019accd4e9a45644487a310106 (patch)
tree5dea8c53fcc7f39ab770548373567ddf1bff0c9f /sexp2rsa.c
parentd0c15a0c90e183ad183a2ee91ed2426eace8472a (diff)
downloadnettle-6d28e270f78092019accd4e9a45644487a310106.tar.gz
* sexp2rsa.c (rsa_keypair_from_sexp): No need to call
sexp_iterator_next anymore. * sexp2rsa.c (rsa_keypair_from_sexp): Use sexp_iterator_first. * testsuite/sexp-test.c (test_main): Likewise. Rev: src/nettle/sexp2rsa.c:1.5
Diffstat (limited to 'sexp2rsa.c')
-rw-r--r--sexp2rsa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sexp2rsa.c b/sexp2rsa.c
index 82410ff6..aaea4fae 100644
--- a/sexp2rsa.c
+++ b/sexp2rsa.c
@@ -83,9 +83,6 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub,
if (!sexp_iterator_check_type(&i, outer))
return 0;
- if (!sexp_iterator_next(&i))
- return 0;
-
if (!sexp_iterator_check_types(&i, 3, names))
return 0;