Another unused bit of legacy API...
ok beck jsing
ENGINE_register_all_complete
ENGINE_set_default
ENGINE_set_default_RSA
-ERR_add_error_data
-ERR_add_error_vdata
ERR_asprintf_error_data
ERR_clear_error
ERR_error_string
-/* $OpenBSD: err.c,v 1.62 2024/07/09 07:17:13 beck Exp $ */
+/* $OpenBSD: err.c,v 1.63 2024/08/31 10:09:15 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
}
LCRYPTO_ALIAS(ERR_asprintf_error_data);
-void
-ERR_add_error_vdata(int num, va_list args)
-{
- char format[129];
- char *errbuf;
- int i;
-
- format[0] = '\0';
- for (i = 0; i < num; i++) {
- if (strlcat(format, "%s", sizeof(format)) >= sizeof(format)) {
- ERR_set_error_data("too many errors", ERR_TXT_STRING);
- return;
- }
- }
- if (vasprintf(&errbuf, format, args) == -1)
- ERR_set_error_data("malloc failed", ERR_TXT_STRING);
- else
- ERR_set_error_data(errbuf, ERR_TXT_MALLOCED|ERR_TXT_STRING);
-}
-LCRYPTO_ALIAS(ERR_add_error_vdata);
-
-void
-ERR_add_error_data(int num, ...)
-{
- va_list args;
- va_start(args, num);
- ERR_add_error_vdata(num, args);
- va_end(args);
-}
-LCRYPTO_ALIAS(ERR_add_error_data);
-
int
ERR_set_mark(void)
{
-/* $OpenBSD: err.h,v 1.34 2024/07/09 07:17:13 beck Exp $ */
+/* $OpenBSD: err.h,v 1.35 2024/08/31 10:09:15 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
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);
void ERR_unload_strings(int lib, ERR_STRING_DATA *str);
void ERR_load_ERR_strings(void);
-/* $OpenBSD: err.h,v 1.6 2024/07/09 07:17:13 beck Exp $ */
+/* $OpenBSD: err.h,v 1.7 2024/08/31 10:09:15 tb Exp $ */
/*
* Copyright (c) 2023 Bob Beck <beck@openbsd.org>
*
LCRYPTO_USED(ERR_get_next_error_library);
LCRYPTO_USED(ERR_set_mark);
LCRYPTO_USED(ERR_pop_to_mark);
-LCRYPTO_UNUSED(ERR_add_error_data);
-LCRYPTO_UNUSED(ERR_add_error_vdata);
#endif /* _LIBCRYPTO_ERR_H */