summaryrefslogtreecommitdiff
path: root/lib/gnutls_pk.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-03-19 11:17:13 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-03-19 11:17:13 +0000
commit5d06b6a64918d38be816a764ae7e6144a0e8e38e (patch)
treea10660eb6aa5840a572128c079eea72c10dd700e /lib/gnutls_pk.c
parent619181e8eaace84aec8e3ea0beec2e1d3f6e2e6a (diff)
downloadgnutls-5d06b6a64918d38be816a764ae7e6144a0e8e38e.tar.gz
* Improved the error logging functions, by adding a level, and
by allowing debugging messages just by increasing the level.
Diffstat (limited to 'lib/gnutls_pk.c')
-rw-r--r--lib/gnutls_pk.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c
index 48205210ea..ac8eab67dc 100644
--- a/lib/gnutls_pk.c
+++ b/lib/gnutls_pk.c
@@ -642,7 +642,9 @@ int _gnutls_pk_sign(int algo, GNUTLS_MPI* data, GNUTLS_MPI hash, GNUTLS_MPI * pk
"(private-key(dsa(p%m)(q%m)(g%m)(y%m)(x%m)))",
pkey[0], pkey[1], pkey[2],
pkey[3], pkey[4]);
- else gnutls_assert();
+ else {
+ gnutls_assert();
+ }
break;
case GCRY_PK_RSA:
@@ -650,8 +652,9 @@ int _gnutls_pk_sign(int algo, GNUTLS_MPI* data, GNUTLS_MPI hash, GNUTLS_MPI * pk
rc = gcry_sexp_build(&s_key, NULL,
"(private-key(rsa((n%m)(e%m)(d%m)(p%m)(q%m)(u%m))))",
pkey[0], pkey[1], pkey[2], pkey[3], pkey[4], pkey[5]);
- else gnutls_assert();
-
+ else {
+ gnutls_assert();
+ }
break;
default: