# include <time.h>
# endif
#endif
-#ifdef ENABLE_HYBRID
-#include <resolv.h>
-#endif
#ifndef HAVE_NETINET6_IPSEC
#include <netinet/ipsec.h>
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
plog(ASL_LEVEL_ERR,
"failed to generate a proposal template "
"from client's proposal.\n");
- return ISAKMP_INTERNAL_ERROR;
+ error = ISAKMP_INTERNAL_ERROR;
+ goto end;
}
/*FALLTHROUGH*/
case 0:
goto end;
}
- result = memcmp(my_hash->v, r_hash, my_hash->l);
+ result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l);
vfree(my_hash);
if (result) {
if (sp_in == NULL || sp_in->policy == IPSEC_POLICY_GENERATE) {
if (iph2->ph1->rmconf->gen_policy) {
if (sp_in)
- plog(ASL_LEVEL_INFO,
+ plog(ASL_LEVEL_NOTICE,
"Update the generated policy : %s\n",
spidx2str(&spidx));
else
- plog(ASL_LEVEL_INFO,
+ plog(ASL_LEVEL_NOTICE,
"no policy found, "
"try to generate the policy : %s\n",
spidx2str(&spidx));