taskrambler  0.1.9
Web server and task management solution.
_validate_password.c File Reference
#include "hash.h"
#include "auth/credential.h"
#include "utils/memory.h"
#include "commons.h"
+ Include dependency graph for _validate_password.c:

Go to the source code of this file.

Functions

int _controllerValidatePassword (char *password, size_t npassword, char *pwrepeat, size_t npwrepeat,)
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file _validate_password.c.

Function Documentation

int _controllerValidatePassword ( char *  password,
size_t  npassword,
char *  pwrepeat,
size_t  npwrepeat 
)

Definition at line 30 of file _validate_password.c.

References FALSE, and TRUE.

35 {
36  if (
37  password->nvalue != pwrepeat->nvalue ||
38  0 != memcmp(password->value, pwrepeat->value, password->nvalue))
39  {
40  return FALSE;
41  }
42 
43  return TRUE;
44 }
#define FALSE
Definition: commons.h:28
#define TRUE
Definition: commons.h:27