wok-undigest rev 618

busybox/httpd: allow clear passwords
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 18 16:01:09 2012 +0100 (2012-01-18)
parents 64814395dcc0
children 7f901d285a36
files busybox/stuff/busybox-1.19-httpd.u runcom/stuff/runcom.c
line diff
     1.1 --- a/busybox/stuff/busybox-1.19-httpd.u	Mon Jan 09 18:06:38 2012 +0100
     1.2 +++ b/busybox/stuff/busybox-1.19-httpd.u	Wed Jan 18 16:01:09 2012 +0100
     1.3 @@ -194,7 +194,7 @@
     1.4  +			/* this cfg entry is '*' or matches username from peer */
     1.5  +
     1.6  +			/* encrypt pwd from peer and check match with local one */
     1.7 -+			{
     1.8 ++			if (passwd[0] == '$' && passwd[1] == '1' && passwd[2] == '$') {
     1.9  +				char *encrypted = pw_encrypt(
    1.10  +					/* pwd: */  colon_after_user + 1,
    1.11  +					/* salt: */ passwd,
     2.1 --- a/runcom/stuff/runcom.c	Mon Jan 09 18:06:38 2012 +0100
     2.2 +++ b/runcom/stuff/runcom.c	Wed Jan 18 16:01:09 2012 +0100
     2.3 @@ -1194,10 +1194,19 @@
     2.4      write(1, &c, 1);
     2.5  }
     2.6  
     2.7 +void raise_interrupt(int number)
     2.8 +{
     2.9 +    if (* (uint32_t *) seg_to_linear(0, number * 4) == 0)
    2.10 +        return;
    2.11 +    // FIXME VM86_SIGNAL
    2.12 +}
    2.13 +
    2.14  void biosclock()
    2.15  {
    2.16      uint32_t *timer = (uint32_t *) seg_to_linear(0, 0x46C);
    2.17      ++*timer;
    2.18 +    raise_interrupt(8);
    2.19 +    raise_interrupt(0x1C);
    2.20  }
    2.21  
    2.22  int main(int argc, char **argv)