summaryrefslogtreecommitdiff
path: root/lib/gnutls_mpi.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-10-08 17:09:58 +0200
committerSimon Josefsson <simon@josefsson.org>2008-10-08 17:09:58 +0200
commit0d91e8fb205e94169687f44bb338d3812dae372a (patch)
tree59ed59f6c55a35eec707ebd77d0e0fab7264ee17 /lib/gnutls_mpi.c
parentce23654ab3b8097241c1639ebe3e853c4f67b6d7 (diff)
downloadgnutls-0d91e8fb205e94169687f44bb338d3812dae372a.tar.gz
Indent.
Diffstat (limited to 'lib/gnutls_mpi.c')
-rw-r--r--lib/gnutls_mpi.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/gnutls_mpi.c b/lib/gnutls_mpi.c
index ad93ce642c..26d820e802 100644
--- a/lib/gnutls_mpi.c
+++ b/lib/gnutls_mpi.c
@@ -49,22 +49,22 @@ _gnutls_mpi_randomize (bigint_t r, unsigned int bits,
opaque *buf;
int buf_release;
- if ( size < sizeof(tmpbuf))
+ if (size < sizeof (tmpbuf))
{
buf = tmpbuf;
buf_release = 0;
- }
- else
+ }
+ else
{
- buf = gnutls_malloc(size);
- if (buf == NULL)
- {
- gnutls_assert();
- goto cleanup;
- }
+ buf = gnutls_malloc (size);
+ if (buf == NULL)
+ {
+ gnutls_assert ();
+ goto cleanup;
+ }
buf_release = 1;
- }
-
+ }
+
ret = _gnutls_rnd (level, buf, size);
if (ret < 0)
@@ -95,7 +95,7 @@ _gnutls_mpi_randomize (bigint_t r, unsigned int bits,
if (buf_release != 0)
{
- gnutls_free( buf);
+ gnutls_free (buf);
buf = NULL;
}
@@ -110,7 +110,7 @@ _gnutls_mpi_randomize (bigint_t r, unsigned int bits,
cleanup:
if (buf_release != 0)
- gnutls_free( buf);
+ gnutls_free (buf);
return NULL;
}