diff options
author | Richard Levitte <levitte@openssl.org> | 2019-07-24 13:13:52 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-07-31 06:43:21 +0200 |
commit | ed57f7f93508776b898e4c23b65d67f3479edaf1 (patch) | |
tree | 45bc03bdd15c9aa069102cf402dc3da79d2577e9 /util | |
parent | ERR: Add new building blocks for reporting errors (diff) | |
download | openssl-ed57f7f93508776b898e4c23b65d67f3479edaf1.tar.xz openssl-ed57f7f93508776b898e4c23b65d67f3479edaf1.zip |
ERR: Implement the macros ERR_raise() and ERR_raise_data() and use them
The ERR_raise() macro uses a trick in C. The following is permitted:
#include <stdio.h>
void first(void)
{
printf("Hello! ");
}
void foo(const char *bar)
{
printf("%s", bar);
}
int main()
{
/* This */
(first(),foo)("cookie");
}
ERR_raise_data() can be used to implement FUNCerr() as well, which
takes away the need for the special function ERR_put_func_error().
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9452)
Diffstat (limited to 'util')
-rw-r--r-- | util/private.num | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/private.num b/util/private.num index 1e76dfb43c..3c00589c9b 100644 --- a/util/private.num +++ b/util/private.num @@ -196,6 +196,8 @@ ERR_GET_REASON define ERR_PACK define ERR_free_strings define deprecated 1.1.0 ERR_load_crypto_strings define deprecated 1.1.0 +ERR_raise define +ERR_raise_data define EVP_DigestSignUpdate define EVP_DigestVerifyUpdate define EVP_KDF_name define |