67 static char prompt_string[80];
72 prompt_string[0]=
'\0';
75 strncpy(prompt_string,prompt,79);
76 prompt_string[79]=
'\0';
82 if (prompt_string[0] ==
'\0')
85 return(prompt_string);
102 if ((prompt == NULL) && (prompt_string[0] !=
'\0'))
103 prompt=prompt_string;
108 buff,min,(len>=BUFSIZ)?BUFSIZ-1:len,buf);
116 const unsigned char *salt,
const unsigned char *
data,
int datal,
117 int count,
unsigned char *
key,
unsigned char *iv)
121 int niv,nkey,addmd=0;
122 unsigned int mds=0,i;
129 if (data == NULL)
return(nkey);
147 for (i=1; i<(
unsigned int)count; i++)
161 if (nkey == 0)
break;
169 if (niv && (i != mds))
181 if ((nkey == 0) && (niv == 0))
break;