[exim-cvs] cvs commit: exim/exim-src/src/auths auth-spa.c

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: exim-cvs
Assunto: [exim-cvs] cvs commit: exim/exim-src/src/auths auth-spa.c
ph10 2005/08/02 14:23:19 BST

  Modified files:
    exim-src/src/auths   auth-spa.c 
  Log:
  Fix example usage in comment at the start of the SPA/NTLM code.


  Revision  Changes    Path
  1.3       +7 -0      exim/exim-src/src/auths/auth-spa.c


  Index: auth-spa.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/auths/auth-spa.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- auth-spa.c    29 Dec 2004 10:55:58 -0000    1.2
  +++ auth-spa.c    2 Aug 2005 13:23:19 -0000    1.3
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/auths/auth-spa.c,v 1.2 2004/12/29 10:55:58 ph10 Exp $ */
  +/* $Cambridge: exim/exim-src/src/auths/auth-spa.c,v 1.3 2005/08/02 13:23:19 ph10 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -84,6 +84,13 @@
          }


          challenge_str = argv [3];
  +
  +       if (spa_base64_to_bits ((char *)&challenge, sizeof(challenge),
  +                (const char *)(challenge_str))<0)
  +       {
  +                printf("bad base64 data in challenge: %s\n", challenge_str);
  +                exit (1);
  +       }


          spa_build_auth_response (&challenge, &response, username, password);
          spa_bits_to_base64 (msgbuf, (unsigned char*)&response,