Skip to content

Commit

Permalink
merge cleaner version (#2)
Browse files Browse the repository at this point in the history
* 1st attempt for a (more or less) 'final' version

* report NOMEMORY on buffer allocation failure

* md5.c: use types from stdint.h (C99)
  • Loading branch information
PeterPawn authored Jan 25, 2018
1 parent 6352d99 commit 02da6a4
Show file tree
Hide file tree
Showing 7 changed files with 371 additions and 520 deletions.
252 changes: 185 additions & 67 deletions Makefile

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
### Purpose

- provide the password needed to open the encrypted private key file
(/var/flash/websrv_ssl_key.pem) from FRITZ!OS versions above 06.20
- provide the password needed to open the encrypted private key file (/var/flash/websrv_ssl_key.pem) from FRITZ!OS versions above 06.20
- new version computes the password itself from ```maca``` value
- no more hassle with static vs. dynamic linking and/or using the proxy binary
- the project contains a library (shared and static), the exported functions are backward-compatible with previous version(s)
- some function from previous versions are useless now and are implemented as 'dummy function'
- the project contains a library (shared and static), some older and (as far as I know) unused functions have been removed from the interface
- the computation of MD5 hashes (in md5.c) was copied (with some minor changes) from the uClibc sources - the (default) libuclibc/libcrypt does not export the needed functions, so they were duplicated here
- the provided binary ```privatekeypassword``` may be used from other programs (or shell scripts) to get the clear-text of the password for the private key file
17 changes: 0 additions & 17 deletions libcrypt.h

This file was deleted.

Loading

0 comments on commit 02da6a4

Please sign in to comment.