|
Lines 2498-2505
Link Here
|
| 2498 |
plog(LLV_ERROR, LOCATION, iph1->remote, |
2498 |
plog(LLV_ERROR, LOCATION, iph1->remote, |
| 2499 |
"couldn't find the pskey for %s.\n", |
2499 |
"couldn't find the pskey for %s.\n", |
| 2500 |
saddrwop2str(iph1->remote)); |
2500 |
saddrwop2str(iph1->remote)); |
|
|
2501 |
} |
| 2502 |
} |
| 2503 |
if (iph1->authstr == NULL) { |
| 2504 |
/* |
| 2505 |
* If we could not locate a psk above try and locate |
| 2506 |
* the default psk, ie, "*". |
| 2507 |
*/ |
| 2508 |
iph1->authstr = privsep_getpsk("*", 1); |
| 2509 |
if (iph1->authstr == NULL) { |
| 2510 |
plog(LLV_ERROR, LOCATION, iph1->remote, |
| 2511 |
"couldn't find the the default pskey either.\n"); |
| 2501 |
goto end; |
2512 |
goto end; |
| 2502 |
} |
2513 |
} |
|
|
2514 |
plog(LLV_NOTIFY, LOCATION, iph1->remote, |
| 2515 |
"Using default PSK.\n"); |
| 2503 |
} |
2516 |
} |
| 2504 |
plog(LLV_DEBUG, LOCATION, NULL, "the psk found.\n"); |
2517 |
plog(LLV_DEBUG, LOCATION, NULL, "the psk found.\n"); |
| 2505 |
/* should be secret PSK */ |
2518 |
/* should be secret PSK */ |