#include "services.h"#include <time.h>#include <ctype.h>#include <string.h>#include "hash/md5.h"#include "hash/md5pw.h"Go to the source code of this file.
Defines | |
| #define | X_OUTPUT_MAP_SZ 64 |
| #define | X_OUTPUT_MAP_SZ 64 |
| #define | X_OUTPUT_MAP_SZ 88 |
| #define | X_BASE_ENCODING ULONG_MAX |
Typedefs | |
| typedef unsigned char | bool |
| 1 or 0 | |
Functions | |
| unsigned char * | toBase64 (const unsigned char *stream, size_t left) |
| unsigned char * | fromBase64 (const char *cStr, int *len) |
| char * | ExpressAsHighIntBase (u_int32_t value) |
| const char * | GetAuthChKey (const char *email, const char *password, time_t timereg, u_int32_t code_arg) |
| int | pwd_too_simple (const char *newp) |
| int | mpwd_too_simple (char *epwd, RegNickList *nick) |
| const char * | PrintPass (u_char pI[], char enc) |
| Print a password appropriately encoded according to its encryption type (if applicable). | |
| int | isPasswordAcceptable (const char *password, char *reason) |
| Is a password acceptable? | |
Services routines for managing and encoding passwords
Copyright 2000, 2001 James Hess All Rights Reserved.
See the end of this file for licensing information.
Definition in file passwd.c.
|
||||||||||||
|
Decode from base64 - whole lot easier to decode than to encode
Definition at line 144 of file passwd.c. References assert, and oalloc(). Referenced by readChanData(), and readNickData(). |
|
||||||||||||||||||||
|
Definition at line 298 of file passwd.c. Referenced by IpcType::authObjMessage(). |
|
||||||||||||
|
Is a password acceptable? This procedure tests whether a password is acceptable or not in terms of technical devices that _need_ to have the password fit into certain ranges. |
|
||||||||||||
|
Print a password appropriately encoded according to its encryption type (if applicable).
Definition at line 440 of file passwd.c. References toBase64(). Referenced by IpcType::authObjMessage(). |
|
||||||||||||
|
Encode in base64 - finally got this working, I hope. -Mysid
Definition at line 42 of file passwd.c. References assert, and oalloc(). Referenced by PrintPass(), saveChanData(), and saveNickData(). |