aboutsummaryrefslogtreecommitdiffstats
path: root/util/mkerr.pl
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace from some files.David Benjamin2016-10-101-8/+8
| | | | | | | | | | | | | | | | | | The prevailing style seems to not have trailing whitespace, but a few lines do. This is mostly in the perlasm files, but a few C files got them after the reformat. This is the result of: find . -name '*.pl' | xargs sed -E -i '' -e 's/( |'$'\t'')*$//' find . -name '*.c' | xargs sed -E -i '' -e 's/( |'$'\t'')*$//' find . -name '*.h' | xargs sed -E -i '' -e 's/( |'$'\t'')*$//' Then bn_prime.h was excluded since this is a generated file. Note mkerr.pl has some changes in a heredoc for some help output, but other lines there lack trailing whitespace too. Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Check for errors allocating the error strings.Kurt Roeckx2016-07-201-4/+6
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> GH: #1330
* Small typo, a tab where there should have been a spaceRichard Levitte2016-05-181-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix util/mkerr.plRichard Levitte2016-05-181-17/+37
| | | | | | | | | | | | | | - Adjust mkerr.pl to produce the line length we used for source reformating. - Have mkerr.pl keep track of preprocessor directive indentation Among others, do not spuriously throw away a #endif at the end of header files. - Make sure mkerr.pl specifies any header inclusion correctly Reviewed-by: Rich Salz <rsalz@openssl.org>
* Tweak generated warning lines.Rich Salz2016-05-051-11/+8
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* Copyright consolidation: perl filesRich Salz2016-04-201-104/+20
| | | | | | | | | Add copyright to most .pl files This does NOT cover any .pl file that has other copyright in it. Most of those are Andy's but some are public domain. Fix typo's in some existing files. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Finish 02f7114a7fbb3f3ac171bae87be8c13bc69e4005David Woodhouse2016-02-171-2/+2
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Perl's chop / chomp considered bad, use a regexp insteadRichard Levitte2016-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Once upon a time, there was chop, which somply chopped off the last character of $_ or a given variable, and it was used to take off the EOL character (\n) of strings. ... but then, you had to check for the presence of such character. So came chomp, the better chop which checks for \n before chopping it off. And this worked well, as long as Perl made internally sure that all EOLs were converted to \n. These days, though, there seems to be a mixture of perls, so lines from files in the "wrong" environment might have \r\n as EOL, or just \r (Mac OS, unless I'm misinformed). So it's time we went for the more generic variant and use s|\R$||, the better chomp which recognises all kinds of known EOLs and chops them off. A few chops were left alone, as they are use as surgical tools to remove one last slash or one last comma. NOTE: \R came with perl 5.10.0. It means that from now on, our scripts will fail with any older version. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Don't add filename comment.Rich Salz2016-02-111-1/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove extraneous output from util/mk scriptsRich Salz2016-01-281-1/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* add -unref option to mkerr.plDr. Stephen Henson2015-12-221-2/+9
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* In mkerr.pl look in directories under ssl/Dr. Stephen Henson2015-12-221-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Read function names from C source files.Dr. Stephen Henson2015-11-051-1/+14
| | | | | | | In mkerr.pl read parse functions names in C source files and use them for translation and sanity checks. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Have mkerr.pl treat already existing multiline string defs properlyRichard Levitte2015-04-081-7/+14
| | | | | | | | | | | | | | | | | | | | | Since source reformat, we ended up with some error reason string definitions that spanned two lines. That in itself is fine, but we sometimes edited them to provide better strings than what could be automatically determined from the reason macro, for example: {ERR_REASON(SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER), "Peer haven't sent GOST certificate, required for selected ciphersuite"}, However, mkerr.pl didn't treat those two-line definitions right, and they ended up being retranslated to whatever the macro name would indicate, for example: {ERR_REASON(SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER), "No gost certificate sent by peer"}, Clearly not what we wanted. This change fixes this problem. Reviewed-by: Matt Caswell <matt@openssl.org>
* Update mkerr.pl for new formatMatt Caswell2015-03-061-66/+66
| | | | | | Make the output from mkerr.pl consistent with the newly reformatted code. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix make errorsMatt Caswell2015-01-221-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Remove FIPS error library from openssl.ec mkerr.plDr. Stephen Henson2014-12-081-2/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* util/mkerr.pl: fix perl warningGeoff Thorpe2014-04-251-2/+2
| | | | | | | | | | | Gets rid of this; defined(@array) is deprecated at ../util/mkerr.pl line 792. (Maybe you should just omit the defined()?) defined(@array) is deprecated at ../util/mkerr.pl line 800. (Maybe you should just omit the defined()?) Signed-off-by: Geoff Thorpe <geoff@openssl.org>
* use correct year automaticallyDr. Stephen Henson2012-10-221-2/+3
|
* fix deprecated statementDr. Stephen Henson2011-12-271-1/+1
|
* update dateDr. Stephen Henson2011-05-191-1/+1
|
* OCSP stapling fix (OpenSSL 0.9.8r/1.0.0d)Bodo Möller2011-02-081-1/+1
| | | | Submitted by: Neel Mehta, Adam Langley, Bodo Moeller
* update mkerr.pl for use fips directory, add arx.pl scriptDr. Stephen Henson2011-01-261-1/+2
|
* update yearDr. Stephen Henson2010-02-091-2/+2
|
* Updates from 1.0.0-stable.Dr. Stephen Henson2009-04-151-6/+76
|
* Update year.Dr. Stephen Henson2008-06-021-1/+1
|
* Apply mingw patches as supplied by Roumen Petrov an Alon Bar-LevLutz Jänicke2008-04-171-0/+4
| | | | | PR: 1552 Submitted by: Roumen Petrov <openssl@roumenpetrov.info>, "Alon Bar-Lev" <alon.barlev@gmail.com>
* Update year.Dr. Stephen Henson2008-03-121-1/+1
|
* Errors should actually be errors.Ben Laurie2007-04-051-0/+11
|
* use 2007 copyright for generated filesBodo Möller2007-02-261-2/+2
|
* Update from 0.9.8 stable. Eliminate duplicate error codes.Dr. Stephen Henson2006-11-211-7/+16
|
* RFC 3161 compliant time stamp request creation, response generationUlf Möller2006-02-121-1/+5
| | | | | | | and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
* Detect more errors.Bodo Möller2006-01-081-7/+41
| | | | | Change assignment strategy: rathern than using max+r for new codes, find first hole in list of existing codes.
* Detect SSL error code mishandling.Bodo Möller2006-01-081-0/+7
|
* include max. codes in debug outputBodo Möller2006-01-081-1/+11
|
* ./util update, which covers various issues, but most importantly mkerr.plAndy Polyakov2006-01-021-2/+5
| | | | and mkdef.pl spinning in endless loop.
* util/mkerr.pl update to address various mkerr.pl problems [such as failureAndy Polyakov2006-01-011-22/+28
| | | | | to handle multi-line comments and endless loop while parsing overloaded gnu-ish __attribute__].
* Update util/ck_errf.pl script, and have it run automaticallyBodo Möller2005-05-091-1/+1
| | | | | | | | during "make errors" and thus during "make update". Fix lots of bugs that util/ck_errf.pl can detect automatically. Various others of these are still left to fix; that's why "make update" will complain loudly when run now.
* Include error library value in C error source files instead of fixing upDr. Stephen Henson2005-04-121-5/+28
| | | | at runtime.
* Changes concering RFC 3820 (proxy certificates) integration:Richard Levitte2005-01-171-2/+2
| | | | | | | | | | | | | | | | | - Enforce that there should be no policy settings when the language is one of id-ppl-independent or id-ppl-inheritAll. - Add functionality to ssltest.c so that it can process proxy rights and check that they are set correctly. Rights consist of ASCII letters, and the condition is a boolean expression that includes letters, parenthesis, &, | and ^. - Change the proxy certificate configurations so they get proxy rights that are understood by ssltest.c. - Add a script that tests proxy certificates with SSL operations. Other changes: - Change the copyright end year in mkerr.pl. - make update.
* Update year.Dr. Stephen Henson2004-12-051-1/+1
|
* There's no need to check for __attribute__ with ANSI functions, sinceRichard Levitte2003-04-041-1/+1
| | | | we only check to the opening parenthesis anyway...
* Counter for GCC attributes.Richard Levitte2003-04-031-7/+7
|
* implement fast point multiplication with precomputationBodo Möller2003-02-061-2/+2
| | | | | Submitted by: Nils Larsch Reviewed by: Bodo Moeller
* ECDSA supportBodo Möller2002-02-131-2/+2
| | | | Submitted by: Nils Larsch <nla@trustcenter.de>
* If the intended header file doesn't exist, create it.Richard Levitte2002-02-071-35/+98
|
* fix formatting of automatically generated error sectionBodo Möller2002-01-241-0/+2
|
* Make it possible to build completely static, independent error CRichard Levitte2001-11-151-11/+45
| | | | files.
* Fix to allow multiple NONE libraries in mkerr.pl .Dr. Stephen Henson2001-05-101-1/+2
|
* Sort openssl.ec, the configuration file for mkerr.pl.Bodo Möller2001-03-081-0/+1
| | | | | Change mkerr.pl so that it puts the ERR_load_..._strings() prototype in header files that it writes.