pol51 / openssl-cmake Goto Github PK
View Code? Open in Web Editor NEWOpenSSL with CMake build system
License: Other
OpenSSL with CMake build system
License: Other
OpenSSL 1.0.1u 22 Sep 2016 Copyright (c) 1998-2015 The OpenSSL Project Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson All rights reserved. DESCRIPTION ----------- The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, fully featured, and Open Source toolkit implementing the Secure Sockets Layer (SSLv3) and Transport Layer Security (TLS) protocols as well as a full-strength general purpose cryptograpic library. The project is managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation. OpenSSL is descended from the SSLeay library developed by Eric A. Young and Tim J. Hudson. The OpenSSL toolkit is licensed under a dual-license (the OpenSSL license plus the SSLeay license), which means that you are free to get and use it for commercial and non-commercial purposes as long as you fulfill the conditions of both licenses. OVERVIEW -------- The OpenSSL toolkit includes: libssl.a: Provides the client and server-side implementations for SSLv3 and TLS. libcrypto.a: Provides general cryptographic and X.509 support needed by SSL/TLS but not logically part of it. openssl: A command line tool that can be used for: Creation of key parameters Creation of X.509 certificates, CSRs and CRLs Calculation of message digests Encryption and decryption SSL/TLS client and server tests Handling of S/MIME signed or encrypted mail And more... INSTALLATION ------------ See the appropriate file: INSTALL Linux, Unix, etc. INSTALL.DJGPP DOS platform with DJGPP INSTALL.NW Netware INSTALL.OS2 OS/2 INSTALL.VMS VMS INSTALL.W32 Windows (32bit) INSTALL.W64 Windows (64bit) INSTALL.WCE Windows CE SUPPORT ------- See the OpenSSL website www.openssl.org for details on how to obtain commercial technical support. If you have any problems with OpenSSL then please take the following steps first: - Download the current snapshot from ftp://ftp.openssl.org/snapshot/ to see if the problem has already been addressed - Remove ASM versions of libraries - Remove compiler optimisation flags If you wish to report a bug then please include the following information in any bug report: - On Unix systems: Self-test report generated by 'make report' - On other systems: OpenSSL version: output of 'openssl version -a' OS Name, Version, Hardware platform Compiler Details (name, version) - Application Details (name, version) - Problem Description (steps that will reproduce the problem, if known) - Stack Traceback (if the application dumps core) Email the report to: [email protected] In order to avoid spam, this is a moderated mailing list, and it might take a day for the ticket to show up. (We also scan posts to make sure that security disclosures aren't publically posted by mistake.) Mail to this address is recorded in the public RT (request tracker) database (see https://www.openssl.org/community/index.html#bugs for details) and also forwarded the public openssl-dev mailing list. Confidential mail may be sent to [email protected] (PGP key available from the key servers). Please do NOT use this for general assistance or support queries. Just because something doesn't work the way you expect does not mean it is necessarily a bug in OpenSSL. You can also make GitHub pull requests. If you do this, please also send mail to [email protected] with a link to the PR so that we can more easily keep track of it. HOW TO CONTRIBUTE TO OpenSSL ---------------------------- See CONTRIBUTING LEGALITIES ---------- A number of nations, in particular the U.S., restrict the use or export of cryptography. If you are potentially subject to such restrictions you should seek competent professional legal advice before attempting to develop or distribute cryptographic code.
edit: edited the BUILD_OBJECT_LIBRARY_ONLY OFF
When I am trying to make install everything compiles fine, but there is no install target defined.
Tried: master and OpenSSL_1_0_1u_3-cmake
[100%] Built target crypto
[ 87%] Performing install step for 'openssl'
gmake[4]: *** No rule to make target `install'. Stop.
gmake[3]: *** [thirdparty/src/openssl-stamp/openssl-install] Error 2
gmake[2]: *** [CMakeFiles/openssl.dir/all] Error 2
gmake[1]: *** [CMakeFiles/openssl.dir/rule] Error 2
gmake: *** [openssl] Error 2
[623/654] Building C object ssl/CMakeFiles/ssl.dir/ssl_err.c.o
FAILED: /usr/bin/cc -DOPENSSL_NO_ASM -isystem ../ssl/../crypto -isystem ../ssl/.. -isystem ../ssl/../include -MMD -MT ssl/CMakeFiles/ssl.dir/ssl_err.c.o -MF "ssl/CMakeFiles/ssl.dir/ssl_err.c.o.d" -o ssl/CMakeFiles/ssl.dir/ssl_err.c.o -c ../ssl/ssl_err.c
In file included from ../ssl/ssl_err.c:62:0:
../ssl/ssl_err.c:332:13: error: ‘SSL_R_BAD_SRP_PARAMETERS’ undeclared here (not in a function)
{ERR_REASON(SSL_R_BAD_SRP_PARAMETERS) ,"bad srp parameters"},
^
../ssl/ssl_err.c:332:2: note: in expansion of macro ‘ERR_REASON’
{ERR_REASON(SSL_R_BAD_SRP_PARAMETERS) ,"bad srp parameters"},
^
[623/654] Building C object ssl/CMakeFiles/ssl.dir/t1_meth.c.o
ninja: build stopped: subcommand failed.
D:\software\OpenSSL-CMake\build>make
Scanning dependencies of target crypto
[ 0%] Building C object crypto/CMakeFiles/crypto.dir/cryptlib.c.obj
In file included from D:\software\OpenSSL-CMake\crypto\cryptlib.h:65:0,
from D:\software\OpenSSL-CMake\crypto\cryptlib.c:117:
D:/software/OpenSSL-CMake/e_os.h:64:28: fatal error: openssl/e_os2.h: No such file or directory
^
compilation terminated.
crypto\CMakeFiles\crypto.dir\build.make:62: recipe for target 'crypto/CMakeFiles/crypto.dir/cryptlib.c.obj' failed
make[2]: *** [crypto/CMakeFiles/crypto.dir/cryptlib.c.obj] Error 1
CMakeFiles\Makefile2:84: recipe for target 'crypto/CMakeFiles/crypto.dir/all' failed
make[1]: *** [crypto/CMakeFiles/crypto.dir/all] Error 2
Makefile:82: recipe for target 'all' failed
make: *** [all] Error 2
Following errors in during cmake -G "MinGW Makefiles" && mingw32-make
:
In file included from c:\tmp\newest\libs\openssl\crypto\cryptlib.h:75:0,
from C:\tmp\newest\libs\openssl\crypto\bn\bn_rand.c:114:
C:\tmp\newest\libs\openssl\crypto\bn\bn_rand.c: In function 'bnrand':
C:\tmp\newest\libs\openssl\crypto\bn\bn_rand.c:126:28: error: 'BN_R_BITS_TOO_SMALL' undeclared (first use in this function)
BNerr(BN_F_BNRAND, BN_R_BITS_TOO_SMALL);
C:\tmp\newest\libs\openssl\crypto\evp\e_aes.c: In function 'aes_gcm_ctrl':
C:\tmp\newest\libs\openssl\crypto\evp\e_aes.c:757:20: error: 'EVP_AEAD_TLS1_AAD_LEN' undeclared (first use in this function)
if (arg != EVP_AEAD_TLS1_AAD_LEN)
^
Hi,
I am trying to compile the project on a Ubuntu 16.04, g++ (Ubuntu 5.3.1-14ubuntu2.1) 5.3.1 20160413, OpenSSL 1.0.2g-fips 1 Mar 2016.
And I am getting all the time the error: #error Code needs update for DTLS_method() support beyond DTLS1_VERSION., when I try to compile, but not sure it is related to the openssl version or smth different.
Thanks for your help.
There are a lot of errors like {{fatal error C1083: Cannot open include file: 'openssl/e_os2.h': No such file or directory}} during the build.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.