Age | Commit message (Collapse) | Author |
|
When printed:
"Insert user name (user@domain.dom):"
don't hardcode the domain to etezian.org
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
use the -Werror gcc flag to compile
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Make if state statement to appear in the following format:
if (...) {
...
} else {
...
}
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
- free unused memory buffers if not needed any more
- the password should be cleared from memory asap
- the return value of scanf should be processed
Signed-off-by: Micha Mutschler <micha@etezian.org>
Acked-by: Andi Shyti <andi@etezian.org>
|
|
Recent gcc versions need the -lxxx options at the end of parameters
Also changed libssl to libcrypto. That is the right SHA256() provider.
Signed-off-by: Micha Mutschler <micha@etezian.org>
Acked-by: Andi Shyti <andi@etezian.org>
|
|
this referring to a wrong array position and the SHA256 encryption
was calculated wrong
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
The length check is demanded to the get password function
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
the get_passwd function performs the following operations:
- gets the password
- checks if the lenght is greater than 64 or lower than 8, if
so, fails
- asks for the confirmation
- encrypts it in SHA256
- returns the encrypted password
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|
|
Signed-off-by: Andi Shyti <andi@etezian.org>
|