]> git.ipfire.org Git - thirdparty/openssl.git/blame - util/err-to-raise
run-checker-daily.yml: If the openssl app is not built do not run it
[thirdparty/openssl.git] / util / err-to-raise
CommitLineData
0f17ac26 1#! /usr/bin/env perl
33388b44 2# Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
0f17ac26
RS
3#
4# Licensed under the Apache License 2.0 (the "License"). You may not use
5# this file except in compliance with the License. You can obtain a copy
6# in the file LICENSE in the source distribution or at
7# https://www.openssl.org/source/license.html
8
9# Run this program like this:
01fe5157 10# perl -pi util/err-to-raise files...
0f17ac26
RS
11# or
12# git ls-files | grep '\.c$' | xargs perl -pi util/err-to-raise
8c0e7681
RS
13# Consider running util/merge-err-lines first, to catch most (all?) of the
14# cases where the XXXerr() call is split into two lines.
f6aca23e 15
01fe5157
RL
16# Do not use this in engines/, they have their own error reporting functions,
17# which do call ERR_raise().
0f17ac26
RS
18
19use strict;
20use warnings;
21
01fe5157 22s/\b([_A-Z0-9]+)err\(\s*\w+\s*,/ERR_raise(ERR_LIB_$1,/;