Lines Matching refs:chapSecret
1515 char *chapSecret; in getSecret() local
1518 chapSecret = getpassphrase(gettext("Enter secret:")); in getSecret()
1520 if (chapSecret == NULL) { in getSecret()
1527 if (strlen(chapSecret) > maxSecretLen) { in getSecret()
1535 if (strlen(chapSecret) < minSecretLen) { in getSecret()
1543 (void) strcpy(secret, chapSecret); in getSecret()
1545 chapSecret = getpassphrase(gettext("Re-enter secret:")); in getSecret()
1547 if (chapSecret == NULL) { in getSecret()
1554 if (strcmp(secret, chapSecret) != 0) { in getSecret()
1560 *secretLen = strlen(chapSecret); in getSecret()
3112 IMA_BYTE chapSecret[MAX_CHAP_SECRET_LEN + 1]; in modifyNodeAuthParam() local
3147 ret = getSecret((char *)&chapSecret[0], &secretLen, in modifyNodeAuthParam()
3157 &chapSecret[0], secretLen); in modifyNodeAuthParam()
3187 IMA_BYTE chapSecret[MAX_CHAP_SECRET_LEN + 1]; in modifyTargetAuthParam() local
3222 ret = getSecret((char *)&chapSecret[0], &secretLen, in modifyTargetAuthParam()
3232 &chapSecret[0], secretLen); in modifyTargetAuthParam()