Fix build

Some compilers had problems with these inline functions.
master
est31 2015-04-12 12:43:53 +02:00
parent 2cf2a29e35
commit 9187622899
1 changed files with 3 additions and 3 deletions

6
srp.c
View File

@ -290,17 +290,17 @@ static int hash_length( SRP_HashAlgorithm alg )
}; };
} }
inline int mpz_num_bytes( const mpz_t op ) inline static int mpz_num_bytes( const mpz_t op )
{ {
return (mpz_sizeinbase (op, 2) + 7) / 8; return (mpz_sizeinbase (op, 2) + 7) / 8;
} }
inline void mpz_to_bin( const mpz_t op, unsigned char * to ) inline static void mpz_to_bin( const mpz_t op, unsigned char * to )
{ {
mpz_export(to, NULL, 1, 1, 1, 0, op); mpz_export(to, NULL, 1, 1, 1, 0, op);
} }
inline void mpz_from_bin( const unsigned char * s, int len, mpz_t ret ) inline static void mpz_from_bin( const unsigned char * s, int len, mpz_t ret )
{ {
mpz_import(ret, len, 1, 1, 1, 0, s); mpz_import(ret, len, 1, 1, 1, 0, s);
} }