Fixed comments / typos
(cherry picked from commit 096348fa7984bb86201c50d8e8e030059af2fb6d)
diff --git a/include/polarssl/config.h b/include/polarssl/config.h
index 6d4aca8..bb2e232 100644
--- a/include/polarssl/config.h
+++ b/include/polarssl/config.h
@@ -280,7 +280,7 @@
/**
* \def POLARSSL_BIGNUM_C
*
- * Enable the multo-precision integer library.
+ * Enable the multi-precision integer library.
*
* Module: library/bignum.c
* Caller: library/dhm.c
diff --git a/library/bignum.c b/library/bignum.c
index 079b58e..4be8cd2 100644
--- a/library/bignum.c
+++ b/library/bignum.c
@@ -1213,10 +1213,6 @@
/*
* Division by int: A = Q * b + R
- *
- * Returns 0 if successful
- * 1 if memory allocation failed
- * POLARSSL_ERR_MPI_DIVISION_BY_ZERO if b == 0
*/
int mpi_div_int( mpi *Q, mpi *R, const mpi *A, t_sint b )
{
diff --git a/library/error.c b/library/error.c
index 9bc5034..a4a1fff 100644
--- a/library/error.c
+++ b/library/error.c
@@ -1,7 +1,7 @@
/*
* Error message information
*
- * Copyright (C) 2006-2010, Brainspark B.V.
+ * Copyright (C) 2006-2012, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
@@ -509,4 +509,4 @@
snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
}
-#endif /* POLARSSL_VERBOSE_ERROR */
+#endif /* POLARSSL_ERROR_C */
diff --git a/library/x509parse.c b/library/x509parse.c
index e91b6f6..3fca27a 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -2776,8 +2776,6 @@
/*
* Wrapper for x509 hashes.
- *
- * \param out Buffer to receive the hash (Should be at least 64 bytes)
*/
static void x509_hash( const unsigned char *in, size_t len, int alg,
unsigned char *out )
diff --git a/scripts/data_files/error.fmt b/scripts/data_files/error.fmt
index 9f83681..535effc 100644
--- a/scripts/data_files/error.fmt
+++ b/scripts/data_files/error.fmt
@@ -1,7 +1,7 @@
/*
* Error message information
*
- * Copyright (C) 2006-2010, Brainspark B.V.
+ * Copyright (C) 2006-2012, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
@@ -86,4 +86,4 @@
snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
}
-#endif /* POLARSSL_VERBOSE_ERROR */
+#endif /* POLARSSL_ERROR_C */