summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/err/err.h
diff options
context:
space:
mode:
authorbeck <>2014-04-24 15:07:20 +0000
committerbeck <>2014-04-24 15:07:20 +0000
commit11a37359f517136d749a7b05e77205850b0fc772 (patch)
treed252bc0e88f78d2be56f39cbb6bb4358e0299383 /src/lib/libcrypto/err/err.h
parentfd45b1e98ea82c5c2fe1d204efe7c747f6dfb0ac (diff)
downloadopenbsd-11a37359f517136d749a7b05e77205850b0fc772.tar.gz
openbsd-11a37359f517136d749a7b05e77205850b0fc772.tar.bz2
openbsd-11a37359f517136d749a7b05e77205850b0fc772.zip
add ERR_asprintf_error_data, A tool to be used to get rid of the far too
frequent construct of 30 lines of pointer and strlcat insanity followed by an ERR_add_error_data. I will sweep through here like a chubby mongol horde in the next few days pillaging crappy ERR_add_error_data's. Oh and while we're at it fix the nasty vdata function to use something less hard on the eyes. ok jsing@
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/err/err.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h
index 87dfef2456..8facd62711 100644
--- a/src/lib/libcrypto/err/err.h
+++ b/src/lib/libcrypto/err/err.h
@@ -343,6 +343,7 @@ void ERR_print_errors_fp(FILE *fp);
343#ifndef OPENSSL_NO_BIO 343#ifndef OPENSSL_NO_BIO
344void ERR_print_errors(BIO *bp); 344void ERR_print_errors(BIO *bp);
345#endif 345#endif
346void ERR_asprintf_error_data(char * format, ...);
346void ERR_add_error_data(int num, ...); 347void ERR_add_error_data(int num, ...);
347void ERR_add_error_vdata(int num, va_list args); 348void ERR_add_error_vdata(int num, va_list args);
348void ERR_load_strings(int lib, ERR_STRING_DATA str[]); 349void ERR_load_strings(int lib, ERR_STRING_DATA str[]);