2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
See the end for copying conditions.
+* Version (unreleased)
+
+** libgnutls: gnutls_srp_verifier() returns data allocated with gnutls_malloc()
+for consistency.
+
+** API and ABI modifications:
+No changes since last version.
+
+
* Version 2.99.3 (released 2011-06-18)
** libgnutls: Added new PKCS #11 flags to force an object being private or
/* Here functions for SRP (like g^x mod n) are defined
*/
-int
+static int
_gnutls_srp_gx (opaque * text, size_t textsize, opaque ** result,
- bigint_t g, bigint_t prime, gnutls_alloc_function galloc_func)
+ bigint_t g, bigint_t prime)
{
bigint_t x, e;
size_t result_size;
ret = _gnutls_mpi_print (e, NULL, &result_size);
if (ret == GNUTLS_E_SHORT_MEMORY_BUFFER)
{
- *result = galloc_func (result_size);
+ *result = gnutls_malloc (result_size);
if ((*result) == NULL)
return GNUTLS_E_MEMORY_ERROR;
* libgcrypt functions gcry_prime_generate() and
* gcry_prime_group_generator().
*
- * The verifier will be allocated with @malloc and will be stored in
+ * The verifier will be allocated with @gnutls_malloc() and will be stored in
* @res using binary format.
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, or an
return GNUTLS_E_MPI_SCAN_FAILED;
}
- ret = _gnutls_srp_gx (digest, 20, &res->data, _g, _n, malloc);
+ ret = _gnutls_srp_gx (digest, 20, &res->data, _g, _n);
if (ret < 0)
{
gnutls_assert ();
#ifdef ENABLE_SRP
-int _gnutls_srp_gx (opaque * text, size_t textsize, opaque ** result,
- bigint_t g, bigint_t prime, gnutls_alloc_function);
bigint_t _gnutls_calc_srp_B (bigint_t * ret_b, bigint_t g, bigint_t n,
bigint_t v);
bigint_t _gnutls_calc_srp_u (bigint_t A, bigint_t B, bigint_t N);