annotate Resources/CMake/OpenSslConfiguration.cmake @ 3168:b9e025b212b6 Orthanc-1.5.3

Orthanc-1.5.3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Jan 2019 15:36:17 +0100
parents 0c2a8d5e0097
children 5e8e020893d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
1 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL)
2710
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
2 SET(OPENSSL_SOURCES_DIR ${CMAKE_BINARY_DIR}/openssl-1.0.2o)
3133
0c2a8d5e0097 moving third-party dependencies to another server
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2793
diff changeset
3 SET(OPENSSL_URL "http://orthanc.osimis.io/ThirdPartyDownloads/openssl-1.0.2o.tar.gz")
2710
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
4 SET(OPENSSL_MD5 "44279b8557c3247cbe324e2322ecd114")
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
5
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
6 if (IS_DIRECTORY "${OPENSSL_SOURCES_DIR}")
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
7 set(FirstRun OFF)
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
8 else()
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
9 set(FirstRun ON)
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
10 endif()
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
11
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
12 DownloadPackage(${OPENSSL_MD5} ${OPENSSL_URL} "${OPENSSL_SOURCES_DIR}")
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
13
2710
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
14 if (FirstRun)
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
15 file(MAKE_DIRECTORY ${OPENSSL_SOURCES_DIR}/include/openssl)
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
16
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
17 foreach(header
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
18 ${OPENSSL_SOURCES_DIR}/crypto/aes/aes.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
19 ${OPENSSL_SOURCES_DIR}/crypto/asn1/asn1.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
20 ${OPENSSL_SOURCES_DIR}/crypto/asn1/asn1_mac.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
21 ${OPENSSL_SOURCES_DIR}/crypto/asn1/asn1t.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
22 ${OPENSSL_SOURCES_DIR}/crypto/bf/blowfish.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
23 ${OPENSSL_SOURCES_DIR}/crypto/bio/bio.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
24 ${OPENSSL_SOURCES_DIR}/crypto/bn/bn.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
25 ${OPENSSL_SOURCES_DIR}/crypto/buffer/buffer.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
26 ${OPENSSL_SOURCES_DIR}/crypto/camellia/camellia.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
27 ${OPENSSL_SOURCES_DIR}/crypto/cast/cast.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
28 ${OPENSSL_SOURCES_DIR}/crypto/cmac/cmac.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
29 ${OPENSSL_SOURCES_DIR}/crypto/cms/cms.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
30 ${OPENSSL_SOURCES_DIR}/crypto/comp/comp.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
31 ${OPENSSL_SOURCES_DIR}/crypto/conf/conf.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
32 ${OPENSSL_SOURCES_DIR}/crypto/conf/conf_api.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
33 ${OPENSSL_SOURCES_DIR}/crypto/crypto.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
34 ${OPENSSL_SOURCES_DIR}/crypto/des/des.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
35 ${OPENSSL_SOURCES_DIR}/crypto/des/des_old.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
36 ${OPENSSL_SOURCES_DIR}/crypto/dh/dh.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
37 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsa.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
38 ${OPENSSL_SOURCES_DIR}/crypto/dso/dso.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
39 ${OPENSSL_SOURCES_DIR}/crypto/ebcdic.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
40 ${OPENSSL_SOURCES_DIR}/crypto/ec/ec.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
41 ${OPENSSL_SOURCES_DIR}/crypto/ecdh/ecdh.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
42 ${OPENSSL_SOURCES_DIR}/crypto/ecdsa/ecdsa.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
43 ${OPENSSL_SOURCES_DIR}/crypto/engine/engine.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
44 ${OPENSSL_SOURCES_DIR}/crypto/err/err.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
45 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
46 ${OPENSSL_SOURCES_DIR}/crypto/hmac/hmac.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
47 ${OPENSSL_SOURCES_DIR}/crypto/idea/idea.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
48 ${OPENSSL_SOURCES_DIR}/crypto/jpake/jpake.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
49 ${OPENSSL_SOURCES_DIR}/crypto/krb5/krb5_asn.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
50 ${OPENSSL_SOURCES_DIR}/crypto/lhash/lhash.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
51 ${OPENSSL_SOURCES_DIR}/crypto/md2/md2.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
52 ${OPENSSL_SOURCES_DIR}/crypto/md4/md4.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
53 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
54 ${OPENSSL_SOURCES_DIR}/crypto/mdc2/mdc2.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
55 ${OPENSSL_SOURCES_DIR}/crypto/modes/modes.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
56 ${OPENSSL_SOURCES_DIR}/crypto/objects/obj_mac.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
57 ${OPENSSL_SOURCES_DIR}/crypto/objects/objects.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
58 ${OPENSSL_SOURCES_DIR}/crypto/ocsp/ocsp.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
59 ${OPENSSL_SOURCES_DIR}/crypto/opensslconf.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
60 ${OPENSSL_SOURCES_DIR}/crypto/opensslv.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
61 ${OPENSSL_SOURCES_DIR}/crypto/ossl_typ.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
62 ${OPENSSL_SOURCES_DIR}/crypto/pem/pem.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
63 ${OPENSSL_SOURCES_DIR}/crypto/pem/pem2.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
64 ${OPENSSL_SOURCES_DIR}/crypto/pkcs12/pkcs12.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
65 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/pkcs7.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
66 ${OPENSSL_SOURCES_DIR}/crypto/pqueue/pqueue.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
67 ${OPENSSL_SOURCES_DIR}/crypto/rand/rand.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
68 ${OPENSSL_SOURCES_DIR}/crypto/rc2/rc2.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
69 ${OPENSSL_SOURCES_DIR}/crypto/rc4/rc4.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
70 ${OPENSSL_SOURCES_DIR}/crypto/rc5/rc5.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
71 ${OPENSSL_SOURCES_DIR}/crypto/ripemd/ripemd.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
72 ${OPENSSL_SOURCES_DIR}/crypto/rsa/rsa.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
73 ${OPENSSL_SOURCES_DIR}/crypto/seed/seed.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
74 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
75 ${OPENSSL_SOURCES_DIR}/crypto/srp/srp.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
76 ${OPENSSL_SOURCES_DIR}/crypto/stack/safestack.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
77 ${OPENSSL_SOURCES_DIR}/crypto/stack/stack.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
78 ${OPENSSL_SOURCES_DIR}/crypto/store/store.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
79 ${OPENSSL_SOURCES_DIR}/crypto/symhacks.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
80 ${OPENSSL_SOURCES_DIR}/crypto/ts/ts.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
81 ${OPENSSL_SOURCES_DIR}/crypto/txt_db/txt_db.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
82 ${OPENSSL_SOURCES_DIR}/crypto/ui/ui.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
83 ${OPENSSL_SOURCES_DIR}/crypto/ui/ui_compat.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
84 ${OPENSSL_SOURCES_DIR}/crypto/whrlpool/whrlpool.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
85 ${OPENSSL_SOURCES_DIR}/crypto/x509/x509.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
86 ${OPENSSL_SOURCES_DIR}/crypto/x509/x509_vfy.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
87 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/x509v3.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
88 ${OPENSSL_SOURCES_DIR}/e_os2.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
89 ${OPENSSL_SOURCES_DIR}/ssl/dtls1.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
90 ${OPENSSL_SOURCES_DIR}/ssl/kssl.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
91 ${OPENSSL_SOURCES_DIR}/ssl/srtp.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
92 ${OPENSSL_SOURCES_DIR}/ssl/ssl.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
93 ${OPENSSL_SOURCES_DIR}/ssl/ssl2.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
94 ${OPENSSL_SOURCES_DIR}/ssl/ssl23.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
95 ${OPENSSL_SOURCES_DIR}/ssl/ssl3.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
96 ${OPENSSL_SOURCES_DIR}/ssl/tls1.h
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
97 )
2715
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
98 file(COPY ${header} DESTINATION ${OPENSSL_SOURCES_DIR}/include/openssl)
2710
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
99 endforeach()
2715
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
100
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
101 file(RENAME
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
102 ${OPENSSL_SOURCES_DIR}/include/openssl/e_os2.h
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
103 ${OPENSSL_SOURCES_DIR}/include/openssl/e_os2_source.h)
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
104
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
105 # The following patch of "e_os2.h" prevents from building OpenSSL
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
106 # as a DLL under Windows. Otherwise, symbols have inconsistent
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
107 # linkage if ${OPENSSL_SOURCES} is used to create a DLL (notably
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
108 # if building an Orthanc plugin such as MySQL).
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
109 file(WRITE ${OPENSSL_SOURCES_DIR}/include/openssl/e_os2.h "
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
110 #include \"e_os2_source.h\"
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
111 #if defined(_WIN32)
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
112 # undef OPENSSL_EXPORT
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
113 # undef OPENSSL_IMPORT
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
114 # undef OPENSSL_EXTERN
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
115 # undef OPENSSL_GLOBAL
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
116 # define OPENSSL_EXPORT
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
117 # define OPENSSL_IMPORT
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
118 # define OPENSSL_EXTERN extern
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
119 # define OPENSSL_GLOBAL
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
120 #endif
73bc0c32547c fix embedding openssl within a DLL
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2714
diff changeset
121 ")
2710
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
122 endif()
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
123
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
124 add_definitions(
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
125 -DOPENSSL_THREADS
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
126 -DOPENSSL_IA32_SSE2
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
127 -DOPENSSL_NO_ASM
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
128 -DOPENSSL_NO_DYNAMIC_ENGINE
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
129 -DNO_WINDOWS_BRAINDEATH
1537
fbf763bb1fa3 error detection in patches
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1530
diff changeset
130
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
131 -DOPENSSL_NO_BF
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
132 -DOPENSSL_NO_CAMELLIA
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
133 -DOPENSSL_NO_CAST
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
134 -DOPENSSL_NO_EC_NISTP_64_GCC_128
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
135 -DOPENSSL_NO_GMP
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
136 -DOPENSSL_NO_GOST
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
137 -DOPENSSL_NO_HW
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
138 -DOPENSSL_NO_JPAKE
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
139 -DOPENSSL_NO_IDEA
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
140 -DOPENSSL_NO_KRB5
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
141 -DOPENSSL_NO_MD2
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
142 -DOPENSSL_NO_MDC2
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
143 #-DOPENSSL_NO_MD4 # MD4 is necessary for MariaDB/MySQL client
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
144 -DOPENSSL_NO_RC2
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
145 -DOPENSSL_NO_RC4
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
146 -DOPENSSL_NO_RC5
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
147 -DOPENSSL_NO_RFC3779
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
148 -DOPENSSL_NO_SCTP
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
149 -DOPENSSL_NO_STORE
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
150 -DOPENSSL_NO_SEED
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
151 -DOPENSSL_NO_WHIRLPOOL
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
152 -DOPENSSL_NO_RIPEMD
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
153 )
735
ee0d5abf7958 dos2unix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 672
diff changeset
154
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
155 include_directories(
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
156 ${OPENSSL_SOURCES_DIR}
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
157 ${OPENSSL_SOURCES_DIR}/crypto
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
158 ${OPENSSL_SOURCES_DIR}/crypto/asn1
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
159 ${OPENSSL_SOURCES_DIR}/crypto/modes
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
160 ${OPENSSL_SOURCES_DIR}/crypto/evp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
161 ${OPENSSL_SOURCES_DIR}/include
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
162 )
2367
2aff870c2c58 refactoring of BoostConfiguration.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2187
diff changeset
163
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
164 set(OPENSSL_SOURCES_SUBDIRS
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
165 ${OPENSSL_SOURCES_DIR}/crypto
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
166 ${OPENSSL_SOURCES_DIR}/crypto/aes
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
167 ${OPENSSL_SOURCES_DIR}/crypto/asn1
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
168 ${OPENSSL_SOURCES_DIR}/crypto/bio
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
169 ${OPENSSL_SOURCES_DIR}/crypto/bn
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
170 ${OPENSSL_SOURCES_DIR}/crypto/buffer
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
171 ${OPENSSL_SOURCES_DIR}/crypto/cmac
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
172 ${OPENSSL_SOURCES_DIR}/crypto/cms
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
173 ${OPENSSL_SOURCES_DIR}/crypto/comp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
174 ${OPENSSL_SOURCES_DIR}/crypto/conf
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
175 ${OPENSSL_SOURCES_DIR}/crypto/des
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
176 ${OPENSSL_SOURCES_DIR}/crypto/dh
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
177 ${OPENSSL_SOURCES_DIR}/crypto/dsa
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
178 ${OPENSSL_SOURCES_DIR}/crypto/dso
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
179 ${OPENSSL_SOURCES_DIR}/crypto/engine
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
180 ${OPENSSL_SOURCES_DIR}/crypto/err
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
181 ${OPENSSL_SOURCES_DIR}/crypto/evp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
182 ${OPENSSL_SOURCES_DIR}/crypto/hmac
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
183 ${OPENSSL_SOURCES_DIR}/crypto/lhash
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
184 ${OPENSSL_SOURCES_DIR}/crypto/md4
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
185 ${OPENSSL_SOURCES_DIR}/crypto/md5
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
186 ${OPENSSL_SOURCES_DIR}/crypto/modes
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
187 ${OPENSSL_SOURCES_DIR}/crypto/objects
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
188 ${OPENSSL_SOURCES_DIR}/crypto/ocsp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
189 ${OPENSSL_SOURCES_DIR}/crypto/pem
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
190 ${OPENSSL_SOURCES_DIR}/crypto/pkcs12
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
191 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
192 ${OPENSSL_SOURCES_DIR}/crypto/pqueue
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
193 ${OPENSSL_SOURCES_DIR}/crypto/rand
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
194 ${OPENSSL_SOURCES_DIR}/crypto/rsa
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
195 ${OPENSSL_SOURCES_DIR}/crypto/sha
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
196 ${OPENSSL_SOURCES_DIR}/crypto/srp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
197 ${OPENSSL_SOURCES_DIR}/crypto/stack
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
198 ${OPENSSL_SOURCES_DIR}/crypto/ts
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
199 ${OPENSSL_SOURCES_DIR}/crypto/txt_db
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
200 ${OPENSSL_SOURCES_DIR}/crypto/ui
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
201 ${OPENSSL_SOURCES_DIR}/crypto/x509
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
202 ${OPENSSL_SOURCES_DIR}/crypto/x509v3
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
203 ${OPENSSL_SOURCES_DIR}/ssl
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
204 )
735
ee0d5abf7958 dos2unix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 672
diff changeset
205
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
206 if (ENABLE_OPENSSL_ENGINES)
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
207 list(APPEND OPENSSL_SOURCES_SUBDIRS
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
208 ${OPENSSL_SOURCES_DIR}/engines
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
209 )
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
210 endif()
2789
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
211
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
212 list(APPEND OPENSSL_SOURCES_SUBDIRS
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
213 # EC, ECDH and ECDSA are necessary for PKCS11, and for contacting
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
214 # HTTPS servers that use TLS certificate encrypted with ECDSA
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
215 # (check the output of a recent version of the "sslscan"
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
216 # command). Until Orthanc <= 1.4.1, these features were only
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
217 # enabled if ENABLE_PKCS11 support was set to "ON".
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
218 # https://groups.google.com/d/msg/orthanc-users/2l-bhYIMEWg/oMmK33bYBgAJ
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
219 ${OPENSSL_SOURCES_DIR}/crypto/ec
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
220 ${OPENSSL_SOURCES_DIR}/crypto/ecdh
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
221 ${OPENSSL_SOURCES_DIR}/crypto/ecdsa
2a4ac74da1ed Fix HTTPS requests to sites using a certificate encrypted with ECDSA
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2715
diff changeset
222 )
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
223
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
224 foreach(d ${OPENSSL_SOURCES_SUBDIRS})
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
225 AUX_SOURCE_DIRECTORY(${d} OPENSSL_SOURCES)
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
226 endforeach()
735
ee0d5abf7958 dos2unix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 672
diff changeset
227
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
228 list(REMOVE_ITEM OPENSSL_SOURCES
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
229 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_unix.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
230 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_vms.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
231 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
232 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_win32.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
233 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_wince.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
234 ${OPENSSL_SOURCES_DIR}/crypto/armcap.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
235 ${OPENSSL_SOURCES_DIR}/crypto/bf/bfs.cpp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
236 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_rtcp.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
237 ${OPENSSL_SOURCES_DIR}/crypto/bn/exp.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
238 ${OPENSSL_SOURCES_DIR}/crypto/conf/cnf_save.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
239 ${OPENSSL_SOURCES_DIR}/crypto/conf/test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
240 ${OPENSSL_SOURCES_DIR}/crypto/des/des.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
241 ${OPENSSL_SOURCES_DIR}/crypto/des/des3s.cpp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
242 ${OPENSSL_SOURCES_DIR}/crypto/des/des_opts.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
243 ${OPENSSL_SOURCES_DIR}/crypto/des/dess.cpp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
244 ${OPENSSL_SOURCES_DIR}/crypto/des/read_pwd.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
245 ${OPENSSL_SOURCES_DIR}/crypto/des/speed.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
246 ${OPENSSL_SOURCES_DIR}/crypto/evp/e_dsa.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
247 ${OPENSSL_SOURCES_DIR}/crypto/evp/m_ripemd.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
248 ${OPENSSL_SOURCES_DIR}/crypto/lhash/lh_test.c
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
249 ${OPENSSL_SOURCES_DIR}/crypto/md4/md4.c
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
250 ${OPENSSL_SOURCES_DIR}/crypto/md4/md4s.cpp
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
251 ${OPENSSL_SOURCES_DIR}/crypto/md4/md4test.c
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
252 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5s.cpp
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
253 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/bio_ber.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
254 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/pk7_enc.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
255 ${OPENSSL_SOURCES_DIR}/crypto/ppccap.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
256 ${OPENSSL_SOURCES_DIR}/crypto/rand/randtest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
257 ${OPENSSL_SOURCES_DIR}/crypto/s390xcap.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
258 ${OPENSSL_SOURCES_DIR}/crypto/sparcv9cap.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
259 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/tabtest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
260 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3conf.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
261 ${OPENSSL_SOURCES_DIR}/ssl/ssl_task.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
262 ${OPENSSL_SOURCES_DIR}/crypto/LPdir_nyi.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
263 ${OPENSSL_SOURCES_DIR}/crypto/aes/aes_x86core.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
264 ${OPENSSL_SOURCES_DIR}/crypto/bio/bss_dgram.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
265 ${OPENSSL_SOURCES_DIR}/crypto/bn/bntest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
266 ${OPENSSL_SOURCES_DIR}/crypto/bn/expspeed.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
267 ${OPENSSL_SOURCES_DIR}/crypto/bn/exptest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
268 ${OPENSSL_SOURCES_DIR}/crypto/engine/enginetest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
269 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
270 ${OPENSSL_SOURCES_DIR}/crypto/hmac/hmactest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
271 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
272 ${OPENSSL_SOURCES_DIR}/crypto/md5/md5test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
273 ${OPENSSL_SOURCES_DIR}/crypto/o_dir_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
274 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/dec.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
275 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/enc.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
276 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/sign.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
277 ${OPENSSL_SOURCES_DIR}/crypto/pkcs7/verify.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
278 ${OPENSSL_SOURCES_DIR}/crypto/rsa/rsa_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
279 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
280 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
281 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1t.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
282 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha1test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
283 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha256t.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
284 ${OPENSSL_SOURCES_DIR}/crypto/sha/sha512t.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
285 ${OPENSSL_SOURCES_DIR}/crypto/sha/shatest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
286 ${OPENSSL_SOURCES_DIR}/crypto/srp/srptest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
287
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
288 ${OPENSSL_SOURCES_DIR}/crypto/bn/divtest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
289 ${OPENSSL_SOURCES_DIR}/crypto/bn/bnspeed.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
290 ${OPENSSL_SOURCES_DIR}/crypto/des/destest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
291 ${OPENSSL_SOURCES_DIR}/crypto/dh/p192.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
292 ${OPENSSL_SOURCES_DIR}/crypto/dh/p512.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
293 ${OPENSSL_SOURCES_DIR}/crypto/dh/p1024.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
294 ${OPENSSL_SOURCES_DIR}/crypto/des/rpw.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
295 ${OPENSSL_SOURCES_DIR}/ssl/ssltest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
296 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsagen.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
297 ${OPENSSL_SOURCES_DIR}/crypto/dsa/dsatest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
298 ${OPENSSL_SOURCES_DIR}/crypto/dh/dhtest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
299 ${OPENSSL_SOURCES_DIR}/crypto/pqueue/pq_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
300 ${OPENSSL_SOURCES_DIR}/crypto/des/ncbc_enc.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
301
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
302 ${OPENSSL_SOURCES_DIR}/crypto/evp/evp_extra_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
303 ${OPENSSL_SOURCES_DIR}/crypto/evp/verify_extra_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
304 ${OPENSSL_SOURCES_DIR}/crypto/x509/verify_extra_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
305 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3prin.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
306 ${OPENSSL_SOURCES_DIR}/crypto/x509v3/v3nametest.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
307 ${OPENSSL_SOURCES_DIR}/crypto/constant_time_test.c
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
308
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
309 ${OPENSSL_SOURCES_DIR}/ssl/heartbeat_test.c
2710
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
310 ${OPENSSL_SOURCES_DIR}/ssl/fatalerrtest.c
26eec77abc76 upgrade to openssl 1.0.2o
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
311 ${OPENSSL_SOURCES_DIR}/ssl/dtlstest.c
2714
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2713
diff changeset
312 ${OPENSSL_SOURCES_DIR}/ssl/bad_dtls_test.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2713
diff changeset
313 ${OPENSSL_SOURCES_DIR}/ssl/clienthellotest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2713
diff changeset
314 ${OPENSSL_SOURCES_DIR}/ssl/sslv2conftest.c
2793
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2792
diff changeset
315
2792
57e2d65d37ce OrthancPlugins::MemoryBuffer::Release(), fixing openssl link
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2789
diff changeset
316 ${OPENSSL_SOURCES_DIR}/crypto/ec/ecp_nistz256.c
2712
76af9465673d fix openssl linking
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2710
diff changeset
317 ${OPENSSL_SOURCES_DIR}/crypto/ec/ecp_nistz256_table.c
2793
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2792
diff changeset
318 ${OPENSSL_SOURCES_DIR}/crypto/ec/ectest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2792
diff changeset
319 ${OPENSSL_SOURCES_DIR}/crypto/ecdh/ecdhtest.c
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2792
diff changeset
320 ${OPENSSL_SOURCES_DIR}/crypto/ecdsa/ecdsatest.c
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
321 )
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
322
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
323
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
324 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
325 set_source_files_properties(
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
326 ${OPENSSL_SOURCES}
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
327 PROPERTIES COMPILE_DEFINITIONS
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
328 "OPENSSL_SYSNAME_WIN32;SO_WIN32;WIN32_LEAN_AND_MEAN;L_ENDIAN")
2676
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
329
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
330 if (ENABLE_OPENSSL_ENGINES)
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
331 link_libraries(crypt32)
d2f70c8f8bfd primitives to compile OpenSSL within MariaDB
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2448
diff changeset
332 endif()
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
333 endif()
2022
fefbe71c2272 Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1919
diff changeset
334
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
335 source_group(ThirdParty\\OpenSSL REGULAR_EXPRESSION ${OPENSSL_SOURCES_DIR}/.*)
735
ee0d5abf7958 dos2unix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 672
diff changeset
336
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
337 else()
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
338 include(FindOpenSSL)
735
ee0d5abf7958 dos2unix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 672
diff changeset
339
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
340 if (NOT ${OPENSSL_FOUND})
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
341 message(FATAL_ERROR "Unable to find OpenSSL")
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
342 endif()
2022
fefbe71c2272 Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1919
diff changeset
343
2379
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
344 include_directories(${OPENSSL_INCLUDE_DIR})
4900688827a8 reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2367
diff changeset
345 link_libraries(${OPENSSL_LIBRARIES})
735
ee0d5abf7958 dos2unix
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 672
diff changeset
346 endif()