ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/crypto.C
(Generate patch)

Comparing ermyth/src/crypto.C (file contents):
Revision 1.4 by pippijn, Tue Aug 28 17:08:12 2007 UTC vs.
Revision 1.5 by pippijn, Tue Sep 4 11:13:25 2007 UTC

3 * Rights to this code are documented in doc/pod/license.pod. 3 * Rights to this code are documented in doc/pod/license.pod.
4 * 4 *
5 * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) 5 * Copyright © 2005-2007 Atheme Project (http://www.atheme.org)
6 */ 6 */
7 7
8static char const rcsid[] = "$Id: crypto.C,v 1.4 2007/08/28 17:08:12 pippijn Exp $"; 8static char const rcsid[] = "$Id: crypto.C,v 1.5 2007/09/04 11:13:25 pippijn Exp $";
9 9
10#include "atheme.h" 10#include "atheme.h"
11#include <ermyth/crypto.h> 11#include <ermyth/crypto.h>
12 12
13static char saltbuf[BUFSIZE]; 13static char saltbuf[BUFSIZE];
30 * crypt_verify_password is a frontend to crypt_string(). 30 * crypt_verify_password is a frontend to crypt_string().
31 */ 31 */
32 bool 32 bool
33 verify_password (char const * const uinput, char const * const pass) 33 verify_password (char const * const uinput, char const * const pass)
34 { 34 {
35 char const * const cstr = crypt (uinput, pass); 35 char const * const cstr = crypter->crypt (uinput, pass);
36 36
37 if (!strcmp (cstr, pass)) 37 if (!strcmp (cstr, pass))
38 return true; 38 return true;
39 39
40 return false; 40 return false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines