Commit 889b9bc9 authored by Niels Möller's avatar Niels Möller
Browse files

* rsa2sexp.c (rsa_keypair_to_sexp): New argument ALGORITHM_NAME.

* examples/rsa-keygen.c (main): Updated call to rsa_keypair_to_sexp.
* testsuite/rsa2sexp-test.c (test_main): Likewise.

Rev: src/nettle/testsuite/rsa2sexp-test.c:1.6
parent f02e32b2
...@@ -50,7 +50,7 @@ test_main(void) ...@@ -50,7 +50,7 @@ test_main(void)
ASSERT(rsa_private_key_prepare(&priv)); ASSERT(rsa_private_key_prepare(&priv));
nettle_buffer_init(&buffer); nettle_buffer_init(&buffer);
ASSERT(rsa_keypair_to_sexp(&buffer, &pub, &priv)); ASSERT(rsa_keypair_to_sexp(&buffer, "rsa", &pub, &priv));
if (verbose) if (verbose)
{ {
...@@ -85,7 +85,7 @@ test_main(void) ...@@ -85,7 +85,7 @@ test_main(void)
"9ea1a8282e292929")); "9ea1a8282e292929"));
nettle_buffer_clear(&buffer); nettle_buffer_clear(&buffer);
ASSERT(rsa_keypair_to_sexp(&buffer, &pub, NULL)); ASSERT(rsa_keypair_to_sexp(&buffer, NULL, &pub, NULL));
if (verbose) if (verbose)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment