Subversion Repositories wimsdev

Rev

Rev 15324 | Rev 15516 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15324 Rev 15328
Line 1949... Line 1949...
1949
{
1949
{
1950
  _http2env(tmplbuf,p); mystrncpy(p,tmplbuf,MAX_LINELEN);
1950
  _http2env(tmplbuf,p); mystrncpy(p,tmplbuf,MAX_LINELEN);
1951
}
1951
}
1952
 
1952
 
1953
/*
1953
/*
-
 
1954
method BDSi not maintained in linux:
1954
...0 gives the number of DES rounds (2 here)
1955
...0 gives the number of DES rounds (2 here) _...0smiw
-
 
1956
come back to "Nv", basic DES
1955
*/
1957
*/
1956
void _passcrypt(char *p, char *salted_hash)
1958
void _passcrypt(char *p, char *salted_hash)
1957
{
1959
{
1958
#ifdef HAVE_CRYPT
1960
#ifdef HAVE_CRYPT
1959
  char* saltstr=salted_hash ? salted_hash : "_...0smiw";
1961
  char* saltstr=salted_hash ? salted_hash: "Nv";
1960
  char *p1, *p2, *pp, *s, buf[MAX_LINELEN+1];
1962
  char *p1, *p2, *pp, *s, buf[MAX_LINELEN+1];
1961
  buf[0]=0; pp=buf;
1963
  buf[0]=0; pp=buf;
1962
  for(p1=find_word_start(p);*p1;p1=find_word_start(p2)) {
1964
  for(p1=find_word_start(p);*p1;p1=find_word_start(p2)) {
1963
    p2=find_word_end(p1); if(*p2) *p2++=0;
1965
    p2=find_word_end(p1); if(*p2) *p2++=0;
1964
    pp=pp+strlen(pp);
1966
    pp=pp+strlen(pp);
Line 1976... Line 1978...
1976
{
1978
{
1977
  _passcrypt(p, NULL);
1979
  _passcrypt(p, NULL);
1978
}
1980
}
1979
/*
1981
/*
1980
 syntax: passcheck nocrypt and list of words as *cryptwords
1982
 syntax: passcheck nocrypt and list of words as *cryptwords
1981
 check if the passcrypt of nocrypt is amongs the list of words
1983
 check if the passcrypt of nocrypt is amongst the list of words
1982
*/
1984
*/
1983
void calc_passcheck(char *p)
1985
void calc_passcheck(char *p)
1984
{
1986
{
1985
  char cl[MAX_LINELEN+1],sh[MAX_LINELEN+1];
1987
  char cl[MAX_LINELEN+1],sh[MAX_LINELEN+1];
1986
  char *qq, *pp=wordchr(p,"and");
1988
  char *qq, *pp=wordchr(p,"and");