FS#35730 - [openssl] can't compile the example in man 3 ecdsa because of missing header files
Attached to Project:
Arch Linux
Opened by Doru Georgescu (doru001) - Sunday, 09 June 2013, 06:21 GMT
Last edited by Pierre Schmitz (Pierre) - Monday, 10 June 2013, 12:54 GMT
Opened by Doru Georgescu (doru001) - Sunday, 09 June 2013, 06:21 GMT
Last edited by Pierre Schmitz (Pierre) - Monday, 10 June 2013, 12:54 GMT
|
Details
Description:
ec_lcl.h (http://fossies.org/dox/openssl-1.0.1e/ec__lcl_8h_source.html#l00240) missing from package. I tried to run the example in man 3ssl ecdsa but I could not find the definition of EC_KEY which is ec_key_st and is defined in ec_lcl.h. This definition is required, in my opinion, by the "key->group" line in the example. There have been undocumented changes in the library (see http://fixunix.com/openssl/157537-re-ecc-curve-problem.html), but still ec_lcl.h would be required, even if key would be EC_GROUP. Additional info: * package version(s) OpenSSL 1.0.1e 11 Feb 2013 * config and/or log files etc. all defaults (I changed nothing) Steps to reproduce: Try to find out the definition of the EC_KEY type which is used in the example in man ecdsa. |
This task depends upon
$ tar tvf openssl-1.0.1e.tar.gz | grep ec_lcl
-rw-rw-r-- openssl/openssl 21911 2013-02-11 17:26 openssl-1.0.1e/crypto/ec/ec_lcl.h
Since you are the packager, you should know why is this file not in the archlinux openssl package. What is the reason, justified or not?
Apparently, you have included only the include subdirectory of the openssl-1.0.1e upstream package. What should I do to use the rest of the package without messing up my system? I need to use the rest of the package only for compiling my applications, not as part of the system. Is it fine just to untar it in my home directory and add it to the gcc include directory? Apparently not, I also need to compile the libraries. How should I do that? There are two make files, written for different systems. There is mingw32-openssl 1.0.1e-1 in AUR, maybe I should use it. Nope, it is 1.4K as compared to the original full 4.3M on the openssl.org page, and it does not contain ec_lcl.h, either. How am I supposed to use openssl C API? Since the full openssl-1.0.1e.tar.gz package is much bigger and rather eclectic, and arch linux works just fine with the small include directory of that package, I suppose that this bug should be closed. If you have any tip for me, please post it here or there: https://bbs.archlinux.org/viewtopic.php?id=164831.