From 24f437ddb1b6ef36ec5b11f24b7b9d5ce1257f1c Mon Sep 17 00:00:00 2001 From: beck <> Date: Thu, 24 Apr 2014 15:07:20 +0000 Subject: 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@ --- src/lib/libcrypto/err/err.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/libcrypto/err/err.h') 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); #ifndef OPENSSL_NO_BIO void ERR_print_errors(BIO *bp); #endif +void ERR_asprintf_error_data(char * format, ...); void ERR_add_error_data(int num, ...); void ERR_add_error_vdata(int num, va_list args); void ERR_load_strings(int lib, ERR_STRING_DATA str[]); -- cgit v1.2.3-55-g6feb