[Openswan Users] openswan-2.4.0rc1 compilation errors
Paul Wouters
paul at xelerance.com
Mon Aug 22 15:40:05 CEST 2005
On Mon, 22 Aug 2005, Oliver Tomkins wrote:
> However, dr8, dr9 and rc1 all give me this problem when I try to upgrade?
>
> ike_alg.c: In function `ike_alg_register_hash':
> ike_alg.c:642: parse error before `int'
> ike_alg.c:646: `ret' undeclared (first use in this function)
The code there should look like:
/*
* Validate and register IKE hash algorithm object
*/
int
ike_alg_register_hash(struct hash_desc *hash_desc)
{
const char *alg_name;
alg_name = "<none>";
int ret=0;
if (hash_desc->common.algo_id > OAKLEY_HASH_MAX) {
plog ("ike_alg_register_hash(): hash alg=%d < max=%d",
hash_desc->common.algo_id, OAKLEY_HASH_MAX); return_on(ret,-EINVAL);
}
Did you get it mangled somehow?
If not, what distro and/or compiler do you have?
Paul
More information about the Users
mailing list