summaryrefslogtreecommitdiffstats
path: root/tools/c_rehash.in
AgeCommit message (Collapse)Author
2018-03-20Update copyright yearMatt Caswell
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5689)
2018-03-08Make "make variables" config attributes for overridable flagsRichard Levitte
With the support of "make variables" comes the possibility for the user to override them. However, we need to make a difference between defaults that we use (and that should be overridable by the user) and flags that are crucial for building OpenSSL (should not be overridable). Typically, overridable flags are those setting optimization levels, warnings levels, that kind of thing, while non-overridable flags are, for example, macros that indicate aspects of how the config target should be treated, such as L_ENDIAN and B_ENDIAN. We do that differentiation by allowing upper case attributes in the config targets, named exactly like the "make variables" we support, and reserving the lower case attributes for non-overridable project flags. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5534)
2016-09-14Add -h and -help for c_rehash script and appRich Salz
Resolves GH1515 and GH1509. Reviewed-by: Matt Caswell <matt@openssl.org>
2016-07-04perl: Separate compile-time environment from runtime environmentRichard Levitte
Make it possible to have a separate and different perl command string for installable scripts than we use when building, with the environment variable HASHBANGPERL. Its value default to the same as the environment PERL if it's defined, otherwise '/usr/bin/env perl'. Note: this is only relevant for Unix-like environments. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-06-02GH1123: sort dir before rehashRich Salz
This is needed to generate stable output names/symlinks. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-06-01Add final(?) set of copyrights.Rich Salz
Add copyright to missing assembler files. Add copyrights to missing test/* files. Add copyrights Various source and misc files. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-25Generate warning textRichard Levitte
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>
2016-01-22Refactor file writing - introduce template driven file writingRichard Levitte
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>
2015-09-10Unwriteable directories are errorsRich Salz
Make the script and app match the documentation. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-08Fix rehash/c_rehash doc and behavior.Rich Salz
Both now warn once if directory isn't writeable. Both now warn on file-write errors (multiple times). Update manpage to describe both program and script correctly. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-06-02GH249: Fix bad regexp in arg parsing.Olaf Johansson
Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-09-11RT2772 update: c_rehash was brokenRich Salz
Move the readdir() lines out of the if statement, so that flist is available globally. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-09-08RT2272: Add old-style hash to c_rehashMatthias Andree
In addition to Matthias's change, I also added -n to not remove links. And updated the manpage. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-09-07RT1325,2973: Add more extensions to c_rehashViktor Dkhovni
Regexp was bracketed wrong. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-31RT1325,2973: Add more extensions to c_rehashTANABE Hiroyasu
Add .crt/.cer/.crl to the filenames parsed. I also updated the podpage (since it didn't exist when this ticket was first created, nor when it was re-created seven years later). Reviewed-by: Tim Hudson <tjh@openssl.org>
2010-04-14PR: 2234Dr. Stephen Henson
Submitted By: Matthias Andree <matthias.andree@gmx.de> Use correct path to openssl utility in c_rehash script.
2009-04-23Merge from 1.0.0-stable branch.Dr. Stephen Henson
2006-10-26Minor portability update to c_rehash.Andy Polyakov
2006-10-21Make c_rehash more platform neutral and make it work in mixed environment,Andy Polyakov
such as MSYS with "native" Win32 perl.
2002-10-11And if the path has a space, we definitely need to protect $openssl.Richard Levitte
2002-10-11Oh, there were *two* places where we needed to protect the fileRichard Levitte
name...
2002-10-11There may be more than one single quote to fix.Richard Levitte
PR: 256
2002-10-11Make sure $fname will not give us any surprises with any funny characters.Richard Levitte
PR: 256
2002-06-13Check for the executable $openssl, not just the file.Richard Levitte
Part of PR: 75
2001-08-17Make sure evil file name characters, like spaces or ampersands (!),Richard Levitte
don't disturb the rehashing process. Spotted and suggested patch from Rudo Thomas <rudo@internet.sk>
2001-04-04Incorporate some changes that make OpenSSL compilable in CygWin.Richard Levitte
2000-05-18Fix c_rehash script, add -fingerprint option to crl.Dr. Stephen Henson
1999-05-13mk1mf.pl and mkdef.pl read OPTIONS from toplevel Makefile.Ulf Möller
Configure no longer changes files in place.