summaryrefslogtreecommitdiff
path: root/lib/gnutls_mpi.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-12-16 17:30:42 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-12-16 17:30:42 +0100
commit6eb6bbfe8e504a611145f454f4045e8f49fd5e44 (patch)
treebaba850cc86ee2d9d61de89da1cdfe408ad8694a /lib/gnutls_mpi.c
parentbdcfdac13179eccee6294402f2654fece149f82b (diff)
downloadgnutls-6eb6bbfe8e504a611145f454f4045e8f49fd5e44.tar.gz
Indented code. Use same indentation but with -nut to avoid usage of tabs. In several editors tabs can be configured not to be 8 spaces and this produces artifacts with the current indentation that is a mixture of tabs and spaces.
Diffstat (limited to 'lib/gnutls_mpi.c')
-rw-r--r--lib/gnutls_mpi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gnutls_mpi.c b/lib/gnutls_mpi.c
index b3d5760ce0..b42a95ec06 100644
--- a/lib/gnutls_mpi.c
+++ b/lib/gnutls_mpi.c
@@ -41,7 +41,7 @@
bigint_t
_gnutls_mpi_randomize (bigint_t r, unsigned int bits,
- gnutls_rnd_level_t level)
+ gnutls_rnd_level_t level)
{
size_t size = 1 + (bits / 8);
int ret;
@@ -59,10 +59,10 @@ _gnutls_mpi_randomize (bigint_t r, unsigned int bits,
{
buf = gnutls_malloc (size);
if (buf == NULL)
- {
- gnutls_assert ();
- goto cleanup;
- }
+ {
+ gnutls_assert ();
+ goto cleanup;
+ }
buf_release = 1;
}
@@ -84,7 +84,7 @@ _gnutls_mpi_randomize (bigint_t r, unsigned int bits,
else
{
for (i = 8; i >= rem; i--)
- buf[0] = clearbit (buf[0], i);
+ buf[0] = clearbit (buf[0], i);
}
ret = _gnutls_mpi_scan (&tmp, buf, size);
@@ -260,7 +260,7 @@ _gnutls_mpi_dprint_size (const bigint_t a, gnutls_datum_t * dest, size_t size)
{
size_t diff = size - bytes;
for (i = 0; i < diff; i++)
- buf[i] = 0;
+ buf[i] = 0;
ret = _gnutls_mpi_print (a, &buf[diff], &bytes);
}
else
@@ -329,7 +329,7 @@ _gnutls_x509_read_int (ASN1_TYPE node, const char *value, bigint_t * ret_mpi)
*/
int
_gnutls_x509_write_int (ASN1_TYPE node, const char *value, bigint_t mpi,
- int lz)
+ int lz)
{
opaque *tmpstr;
size_t s_len;