summaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-01-25 21:19:59 +0100
committerRichard Levitte <levitte@openssl.org>2016-01-25 21:19:59 +0100
commit9ab6fc5936be62f6fee1c433938eae4c89aa23da (patch)
tree0f0177f9d404741116b0c65c157db32c10410a35 /crypto/include
parent52cdc9970de5f0e884d829d8dfa23c89c51527f9 (diff)
Generate warning text
Now that we're using templates, we should warn people not to edit the resulting file. We do it through util/dofile.pl, which is enhanced with an option to tell what file it was called from. We also change the calls so the template files are on the command line instead of being redirected through standard input. That way, we can display something like this (example taken from include/openssl/opensslconf.h): /* WARNING: do not edit! */ /* Generated by Configure from include/openssl/opensslconf.h.in */ Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/bf_conf.h.in1
-rw-r--r--crypto/include/internal/bn_conf.h.in1
-rw-r--r--crypto/include/internal/des_conf.h.in1
-rw-r--r--crypto/include/internal/rc4_conf.h.in1
4 files changed, 4 insertions, 0 deletions
diff --git a/crypto/include/internal/bf_conf.h.in b/crypto/include/internal/bf_conf.h.in
index 5b6e5e7190..552faae98e 100644
--- a/crypto/include/internal/bf_conf.h.in
+++ b/crypto/include/internal/bf_conf.h.in
@@ -1,3 +1,4 @@
+{- join("\n",map { "/* $_ */" } @autowarntext) -}
/* ====================================================================
* Copyright (c) 2016 The OpenSSL Project. All rights reserved.
*
diff --git a/crypto/include/internal/bn_conf.h.in b/crypto/include/internal/bn_conf.h.in
index a75e964300..5ebd55d522 100644
--- a/crypto/include/internal/bn_conf.h.in
+++ b/crypto/include/internal/bn_conf.h.in
@@ -1,3 +1,4 @@
+{- join("\n",map { "/* $_ */" } @autowarntext) -}
/* ====================================================================
* Copyright (c) 2016 The OpenSSL Project. All rights reserved.
*
diff --git a/crypto/include/internal/des_conf.h.in b/crypto/include/internal/des_conf.h.in
index 43ab5eb99c..2c4369bd78 100644
--- a/crypto/include/internal/des_conf.h.in
+++ b/crypto/include/internal/des_conf.h.in
@@ -1,3 +1,4 @@
+{- join("\n",map { "/* $_ */" } @autowarntext) -}
/* ====================================================================
* Copyright (c) 2016 The OpenSSL Project. All rights reserved.
*
diff --git a/crypto/include/internal/rc4_conf.h.in b/crypto/include/internal/rc4_conf.h.in
index 5f23357fbf..b5b2bd3fc0 100644
--- a/crypto/include/internal/rc4_conf.h.in
+++ b/crypto/include/internal/rc4_conf.h.in
@@ -1,3 +1,4 @@
+{- join("\n",map { "/* $_ */" } @autowarntext) -}
/* ====================================================================
* Copyright (c) 2016 The OpenSSL Project. All rights reserved.
*