Add output routines to allow consistent formatting of memory, strings
[openssl.git] / test / testutil / tu_local.h
1 /*
2  * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (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
10 #include <stdlib.h>              /* size_t */
11 #include <openssl/bn.h>
12
13 int subtest_level(void);
14 int openssl_error_cb(const char *str, size_t len, void *u);
15
16 void test_fail_message_prefix(const char *prefix, const char *file,
17                               int line, const char *type,
18                               const char *left, const char *right,
19                               const char *op);
20
21 void test_fail_string_message(const char *prefix, const char *file,
22                               int line, const char *type,
23                               const char *left, const char *right,
24                               const char *op, const char *m1, size_t l1,
25                               const char *m2, size_t l2);
26
27 void test_fail_bignum_message(const char *prefix, const char *file,
28                               int line, const char *type,
29                               const char *left, const char *right,
30                               const char *op,
31                               const BIGNUM *bn1, const BIGNUM *bn2);
32 void test_fail_bignum_mono_message(const char *prefix, const char *file,
33                                    int line, const char *type,
34                                    const char *left, const char *right,
35                                    const char *op, const BIGNUM *bn);
36
37 void test_fail_memory_message(const char *prefix, const char *file,
38                               int line, const char *type,
39                               const char *left, const char *right,
40                               const char *op,
41                               const unsigned char *m1, size_t l1,
42                               const unsigned char *m2, size_t l2);
43