From a38808d68d3c61de44508f913a3d0daf366eb52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 4 Dec 2002 10:38:05 +0100 Subject: [PATCH] (rsa_keypair_to_sexp): Use %0s rather than %z, when formatting s-expressions. Rev: src/nettle/rsa2sexp.c:1.4 --- rsa2sexp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rsa2sexp.c b/rsa2sexp.c index 1bb45de4..ad03408c 100644 --- a/rsa2sexp.c +++ b/rsa2sexp.c @@ -39,13 +39,13 @@ rsa_keypair_to_sexp(struct nettle_buffer *buffer, { if (priv) return sexp_format(buffer, - "(%z(%z(%z%b)(%z%b)(%z%b)" - "(%z%b)(%z%b)(%z%b)(%z%b)(%z%b)))", + "(%0s(%0s(%0s%b)(%0s%b)(%0s%b)" + "(%0s%b)(%0s%b)(%0s%b)(%0s%b)(%0s%b)))", "private-key", "rsa", "n", pub->n, "e", pub->e, "d", priv->d, "p", priv->p, "q", priv->q, "a", priv->a, "b", priv->b, "c", priv->c); else - return sexp_format(buffer, "(%z(%z(%z%b)(%z%b)))", + return sexp_format(buffer, "(%0s(%0s(%0s%b)(%0s%b)))", "public-key", "rsa", "n", pub->n, "e", pub->e); } -- GitLab