summaryrefslogtreecommitdiff
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-26Makefile: consider warnings as errorsAndi Shyti
use the -Werror gcc flag to compile 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>
2013-07-01Fix compile issues on Ubuntu 12.04Micha Mutschler
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>
2012-09-05crypt_sha256: fixed boundary problemAndi Shyti
this referring to a wrong array position and the SHA256 encryption was calculated wrong Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-05crypt_sha256: removed unused codeAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-05crypt_sha256: some sparse fixesAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-03crypt_sha256: strings should be treated as unsigned charAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-03crypt_sha256: fixed lenght password allocationAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-03encrypt_sha256: removed password length check in the encryption passwordAndi Shyti
The length check is demanded to the get password function Signed-off-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-02Makefile: added uninstall optionAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-02Makefile: added install optionAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-02COPYING: added license GPLv2Andi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>
2012-09-02accman: git repo createdAndi Shyti
Signed-off-by: Andi Shyti <andi@etezian.org>