Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664118 - app-crypt/johntheripper fails to build with >=dev-libs/openssl-1.1.0
Summary: app-crypt/johntheripper fails to build with >=dev-libs/openssl-1.1.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
URL: https://github.com/magnumripper/JohnT...
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2018-08-20 17:04 UTC by Bernard Cafarelli
Modified: 2018-12-21 15:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log with =dev-libs/openssl-1.1.0i (build.log,22.93 KB, text/plain)
2018-08-20 17:04 UTC, Bernard Cafarelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Cafarelli gentoo-dev 2018-08-20 17:04:45 UTC
Created attachment 544102 [details]
build log with =dev-libs/openssl-1.1.0i

ssh_fmt.c:55:11: error: field ‘pk’ has incomplete type
  EVP_PKEY pk;
           ^~
ssh_fmt.c: In function ‘EVP_DecryptFinal_ex_safe’:
ssh_fmt.c:118:9: error: dereferencing pointer to incomplete type ‘EVP_CIPHER_CTX’ {aka ‘struct evp_cipher_ctx_st’}
  if (ctx->cipher->flags & EVP_CIPH_FLAG_CUSTOM_CIPHER) {
         ^~
ssh_fmt.c: In function ‘PEM_do_header_safe’:
ssh_fmt.c:167:24: error: storage size of ‘ctx’ isn’t known
         EVP_CIPHER_CTX ctx;
                        ^~~
ssh_fmt.c:167:24: warning: unused variable ‘ctx’ [-Wunused-variable]
ssh_fmt.c: In function ‘get_salt’:
ssh_fmt.c:212:11: error: storage size of ‘pk’ isn’t known
  EVP_PKEY pk;
           ^~
ssh_fmt.c:212:11: warning: unused variable ‘pk’ [-Wunused-variable]
ssh_fmt.c: In function ‘crypt_all’:
ssh_fmt.c:325:3: error: variable ‘pk’ has initializer but incomplete type
   EVP_PKEY pk = restored_custom_salt->pk;
   ^~~~~~~~
ssh_fmt.c:325:12: error: storage size of ‘pk’ isn’t known
   EVP_PKEY pk = restored_custom_salt->pk;
            ^~
ssh_fmt.c:325:12: warning: unused variable ‘pk’ [-Wunused-variable]
ssh2john.c: In function ‘process_file’:
ssh2john.c:50:11: error: storage size of ‘pk’ isn’t known
  EVP_PKEY pk;
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-24 21:56:49 UTC
Seems like all we need is another upstream release. Can someone poke upstream?
Comment 2 Mark Gomersbach 2018-11-11 11:36:39 UTC
Upstream seems to want to move away from OpenSSL

https://github.com/magnumripper/JohnTheRipper/issues/3163

and 

https://github.com/magnumripper/JohnTheRipper/issues/2356

Back then they seemed to miss the RSA/DSA asymmetric crypto and the performance of the OpenSSL libs
Comment 3 Anton Bolshakov 2018-12-07 16:19:20 UTC
https://github.com/magnumripper/JohnTheRipper/issues/2355
the patch is here, not sure how easy it would be to backport it.
Comment 4 Hanno Böck gentoo-dev 2018-12-19 07:46:05 UTC
1.8.0 has been added to the tree and compiles with openssl 1.1.1a, so I believe we can close this (?)
Comment 5 Bernard Cafarelli gentoo-dev 2018-12-21 15:02:29 UTC
Tested 1.8.0 and it's working fine with openssl-1.1.1a indeed