summaryrefslogtreecommitdiffstats
path: root/util/mkerr.pl
AgeCommit message (Collapse)Author
2016-07-20Check for errors allocating the error strings.Kurt Roeckx
Reviewed-by: Richard Levitte <levitte@openssl.org> GH: #1330
2016-05-18Small typo, a tab where there should have been a spaceRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-05-18Fix util/mkerr.plRichard Levitte
- 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>
2016-05-05Tweak generated warning lines.Rich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-04-20Copyright consolidation: perl filesRich Salz
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>
2016-02-17Finish 02f7114a7fbb3f3ac171bae87be8c13bc69e4005David Woodhouse
Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-11Perl's chop / chomp considered bad, use a regexp insteadRichard Levitte
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>
2016-02-11Don't add filename comment.Rich Salz
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-28Remove extraneous output from util/mk scriptsRich Salz
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-12-22add -unref option to mkerr.plDr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-12-22In mkerr.pl look in directories under ssl/Dr. Stephen Henson
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-05Read function names from C source files.Dr. Stephen Henson
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>
2015-04-08Have mkerr.pl treat already existing multiline string defs properlyRichard Levitte
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>
2015-03-06Update mkerr.pl for new formatMatt Caswell
Make the output from mkerr.pl consistent with the newly reformatted code. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-01-22Fix make errorsMatt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove FIPS error library from openssl.ec mkerr.plDr. Stephen Henson
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-04-25util/mkerr.pl: fix perl warningGeoff Thorpe
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>
2012-10-22use correct year automaticallyDr. Stephen Henson
2011-12-27fix deprecated statementDr. Stephen Henson
2011-05-19update dateDr. Stephen Henson
2011-02-08OCSP stapling fix (OpenSSL 0.9.8r/1.0.0d)Bodo Möller
Submitted by: Neel Mehta, Adam Langley, Bodo Moeller
2011-01-26update mkerr.pl for use fips directory, add arx.pl scriptDr. Stephen Henson
2010-02-09update yearDr. Stephen Henson
2009-04-15Updates from 1.0.0-stable.Dr. Stephen Henson
2008-06-02Update year.Dr. Stephen Henson
2008-04-17Apply mingw patches as supplied by Roumen Petrov an Alon Bar-LevLutz Jänicke
PR: 1552 Submitted by: Roumen Petrov <openssl@roumenpetrov.info>, "Alon Bar-Lev" <alon.barlev@gmail.com>
2008-03-12Update year.Dr. Stephen Henson
2007-04-05Errors should actually be errors.Ben Laurie
2007-02-26use 2007 copyright for generated filesBodo Möller
2006-11-21Update from 0.9.8 stable. Eliminate duplicate error codes.Dr. Stephen Henson
2006-02-12RFC 3161 compliant time stamp request creation, response generationUlf Möller
and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
2006-01-08Detect more errors.Bodo Möller
Change assignment strategy: rathern than using max+r for new codes, find first hole in list of existing codes.
2006-01-08Detect SSL error code mishandling.Bodo Möller
2006-01-08include max. codes in debug outputBodo Möller
2006-01-02./util update, which covers various issues, but most importantly mkerr.plAndy Polyakov
and mkdef.pl spinning in endless loop.
2006-01-01util/mkerr.pl update to address various mkerr.pl problems [such as failureAndy Polyakov
to handle multi-line comments and endless loop while parsing overloaded gnu-ish __attribute__].
2005-05-09Update util/ck_errf.pl script, and have it run automaticallyBodo Möller
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.
2005-04-12Include error library value in C error source files instead of fixing upDr. Stephen Henson
at runtime.
2005-01-17Changes concering RFC 3820 (proxy certificates) integration:Richard Levitte
- 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.
2004-12-05Update year.Dr. Stephen Henson
2003-04-04There's no need to check for __attribute__ with ANSI functions, sinceRichard Levitte
we only check to the opening parenthesis anyway...
2003-04-03Counter for GCC attributes.Richard Levitte
2003-02-06implement fast point multiplication with precomputationBodo Möller
Submitted by: Nils Larsch Reviewed by: Bodo Moeller
2002-02-13ECDSA supportBodo Möller
Submitted by: Nils Larsch <nla@trustcenter.de>
2002-02-07If the intended header file doesn't exist, create it.Richard Levitte
2002-01-24fix formatting of automatically generated error sectionBodo Möller
2001-11-15Make it possible to build completely static, independent error CRichard Levitte
files.
2001-05-10Fix to allow multiple NONE libraries in mkerr.pl .Dr. Stephen Henson
2001-03-08Sort openssl.ec, the configuration file for mkerr.pl.Bodo Möller
Change mkerr.pl so that it puts the ERR_load_..._strings() prototype in header files that it writes.
2001-03-08More method functions for EC_GFp_simple_method.Bodo Möller