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

Go to the source code of this file.

Functions

int _controllerValidatePasswordRepeat (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_repeat.c.

Function Documentation

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

Definition at line 30 of file _validate_password_repeat.c.

References FALSE, and TRUE.

Referenced by _controllerGetCredentialFromArgs().

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

+ Here is the caller graph for this function: