summaryrefslogtreecommitdiff
path: root/accman.c
AgeCommit message (Collapse)Author
2013-08-20accman.c: remove hardcoded domainHEADmasterAndi Shyti
When printed: "Insert user name (user@domain.dom):" don't hardcode the domain to etezian.org Signed-off-by: Andi Shyti <andi@etezian.org>
2013-07-26accman.c: if else coding style fixAndi Shyti
Make if state statement to appear in the following format: if (...) { ... } else { ... } Signed-off-by: Andi Shyti <andi@etezian.org>
2013-07-26accman.c: fix line over 80 charactersAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2013-07-01Fix memory leaks, security issues and compiler warningsMicha Mutschler
- 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>
2012-09-03accman: added function get passwordAndi Shyti
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>
2012-09-03accman: removed superfluous printfAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-02accman: git repo createdAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>