Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile fails with OpenSSL 1.1 #1

Open
teskje opened this issue Oct 10, 2019 · 2 comments
Open

Compile fails with OpenSSL 1.1 #1

teskje opened this issue Oct 10, 2019 · 2 comments

Comments

@teskje
Copy link

teskje commented Oct 10, 2019

Trying to make this project on Ubuntu 18.04 with OpenSSL 1.1 yields the following compiler errors:

...
cc -O2 -Wall -s -o vfdecrypt vfdecrypt.c -lcrypto
vfdecrypt.c: In function ‘apple_des3_ede_unwrap_key’:
vfdecrypt.c:215:18: error: storage size of ‘ctx’ isn’t known
   EVP_CIPHER_CTX ctx;
                  ^~~
...
vfdecrypt.c: In function ‘unwrap_v2_header’:
vfdecrypt.c:282:18: error: storage size of ‘ctx’ isn’t known
   EVP_CIPHER_CTX ctx;
                  ^~~
...
vfdecrypt.c: At top level:
vfdecrypt.c:186:10: error: storage size of ‘hmacsha1_ctx’ isn’t known
 HMAC_CTX hmacsha1_ctx;
          ^~~~~~~~~~~~
...
Makefile:20: recipe for target 'vfdecrypt' failed
make: *** [vfdecrypt] Error 1

This is due to an API change in OpenSSL 1.1, see https://stackoverflow.com/questions/42662733/evp-md-ctx-error-storage-size-of-ctx-isn-t-known.

@neo7BF
Copy link

neo7BF commented Nov 19, 2020

I have resolved this editing vfdecrypt.c and recompiling. The problem was that some istanziation structures are changed with openSSL 1.1.0. I have pulled a request for this

@vaxxabait
Copy link

This is already solved in another fork - https://github.com/Lekensteyn/dmg2img.
From practical point of view I would consider the repo above as a new mainline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants