Go to file
Richard Levitte 291e94df90 Refactor file writing - introduce template driven file writing
apps/CA.pl and tools/c_rehash are built from template files.  So far,
this was done by Configure, which created its own problems as it
forced everyone to reconfigure just because one of the template files
had changed.
Instead, have those files created as part of the normal build in apps/
and in tools/.

Furthermore, this prepares for a future where Configure may produce
entirely other build files than Makefile, and the latter can't be
guaranteed to be the holder of all information for other scripts.
Instead, configdata.pm (described below) becomes the center of
configuration information.

This introduces a few new things:

%config         a hash table to hold all kinds of configuration data
                that can be used by any other script.
configdata.pm   a perl module that Configure writes.  It currently
                holds the hash tables %config and %target.
util/dofile.pl  a script that takes a template on STDIN and outputs
                the result after applying configuration data on it.
                It's supposed to be called like this:

                        perl -I$(TOP) -Mconfigdata < template > result

                or

                        perl -I$(TOP) -Mconfigdata templ1 templ2 ... > result

                Note: util/dofile.pl requires Text::Template.

As part of this changed, remove a number of variables that are really
just copies of entries in %target, and use %target directly.  The
exceptions are $target{cflags} and $target{lflags}, they do get copied
to $cflags and $lflags.  The reason for this is that those variable
potentially go through a lot of changes and would rather deserve a
place in %config.  That, however, is for another commit.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-22 23:12:22 +01:00
Configurations Configurations - no_asm_filler is long gone, don't use it 2016-01-22 18:37:50 +01:00
Netware Remove SSLv2 support 2014-12-04 11:55:03 +01:00
VMS Remove the old VMS linker option file creator for shlibs 2016-01-07 21:09:43 +01:00
apps Refactor file writing - introduce template driven file writing 2016-01-22 23:12:22 +01:00
certs Fix verify(1) to report failure when verification fails 2016-01-13 17:55:17 -05:00
crypto RT3863 ECC: Add missing NULL check. Set a flag 2016-01-21 14:06:57 +02:00
demos Consolidate "make update" 2016-01-20 09:09:14 -05:00
doc Fixed typo in the SSL_CTX_set_security_level 2016-01-22 14:58:04 -05:00
engines Remove update tags 2016-01-20 09:09:14 -05:00
include Updated OSSL_DYNAMIC_VERSION/OSSL_DYNAMIC_OLDEST 2016-01-22 11:55:28 -05:00
ms Fix various windows compilation issues 2015-01-28 22:55:15 +00:00
os2
ssl Fix build failure with CIPHER_DEBUG 2016-01-22 12:00:46 -05:00
test dsatest: use the correct BIO to print the test error 2016-01-22 11:48:51 -05:00
tools Refactor file writing - introduce template driven file writing 2016-01-22 23:12:22 +01:00
util Refactor file writing - introduce template driven file writing 2016-01-22 23:12:22 +01:00
.gitignore Refactor file writing - introduce template driven file writing 2016-01-22 23:12:22 +01:00
.travis-create-release.sh Move Makefiles to Makefile.in 2016-01-12 16:26:56 -05:00
.travis.yml Adapt the OS X build to use the OS X tar 2015-12-08 21:04:53 +01:00
ACKNOWLEDGEMENTS Refer to website for acknowledgements. 2015-12-08 16:07:09 -05:00
CHANGES Refresh the thinking of --prefix and --openssldir 2016-01-22 00:52:31 +01:00
CONTRIBUTING Clarify the preferred way of creating patch files 2015-11-02 14:32:16 +00:00
Configure Refactor file writing - introduce template driven file writing 2016-01-22 23:12:22 +01:00
FAQ Move FAQ to the web. 2015-08-16 19:02:29 -04:00
GitConfigure Remove remaining variables for symlinked/copied headers and tests 2015-03-31 20:16:01 +02:00
GitMake
INSTALL Update Windows installation instructions 2016-01-15 11:01:00 +00:00
INSTALL.DJGPP
INSTALL.NW
INSTALL.OS2
INSTALL.VMS Add a few notes on perl 2015-09-15 13:14:49 +02:00
INSTALL.WCE Update Windows installation instructions 2016-01-15 11:01:00 +00:00
INSTALL.WIN Update Windows installation instructions 2016-01-15 11:01:00 +00:00
LICENSE Update license year range to 2016 2016-01-19 10:24:05 -05:00
Makefile.in Refresh the thinking of --prefix and --openssldir 2016-01-22 00:52:31 +01:00
Makefile.shared Don't strip object files on Cygwin 2016-01-18 16:16:00 +01:00
NEWS few typo fixes 2016-01-22 11:47:24 -05:00
PROBLEMS Fixing typo in PROBLEMS 2015-09-27 20:50:40 -04:00
README Update Windows installation instructions 2016-01-15 11:01:00 +00:00
README.ECC
README.ENGINE
README.FIPS Remove more (rest?) of FIPS build stuff. 2016-01-06 12:07:26 -05:00
appveyor.yml Add initial AppVeyor configuration 2015-11-21 18:06:31 +01:00
config isalist(1) is obsolete; use isainfo(1) 2016-01-22 11:58:15 -05:00
e_os.h Add a no-egd option to disable EGD-related code 2016-01-14 13:02:51 -05:00
install.com
makevms.com Fix DES_LONG breakage 2016-01-13 12:37:48 -05:00
openssl.doxy
openssl.spec

README

 OpenSSL 1.1.0-pre3-dev

 Copyright (c) 1998-2016 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.WIN     Windows
        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:

    rt@openssl.org

 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 openssl-security@openssl.org (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 rt@openssl.org 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.