]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* sexp2rsa.c (rsa_keypair_from_sexp): No need to call
authorNiels Möller <nisse@lysator.liu.se>
Sun, 6 Oct 2002 21:13:41 +0000 (23:13 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 6 Oct 2002 21:13:41 +0000 (23:13 +0200)
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

sexp2rsa.c

index 82410ff61e36618233a3bb9f5cdd2ef84b46e730..aaea4fae0f3809039a116cd9c3ca12010691dd9a 100644 (file)
@@ -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;