tu_local.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include <stdlib.h> /* size_t */
  10. #include <openssl/bn.h>
  11. #include <openssl/bio.h>
  12. #include "../testutil.h"
  13. int subtest_level(void);
  14. int openssl_error_cb(const char *str, size_t len, void *u);
  15. const BIO_METHOD *BIO_f_tap(void);
  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. void test_fail_string_message(const char *prefix, const char *file,
  21. int line, const char *type,
  22. const char *left, const char *right,
  23. const char *op, const char *m1, size_t l1,
  24. const char *m2, size_t l2);
  25. void test_fail_bignum_message(const char *prefix, const char *file,
  26. int line, const char *type,
  27. const char *left, const char *right,
  28. const char *op,
  29. const BIGNUM *bn1, const BIGNUM *bn2);
  30. void test_fail_bignum_mono_message(const char *prefix, const char *file,
  31. int line, const char *type,
  32. const char *left, const char *right,
  33. const char *op, const BIGNUM *bn);
  34. void test_fail_memory_message(const char *prefix, const char *file,
  35. int line, const char *type,
  36. const char *left, const char *right,
  37. const char *op,
  38. const unsigned char *m1, size_t l1,
  39. const unsigned char *m2, size_t l2);
  40. void setup_test_framework(void);
  41. __owur int pulldown_test_framework(int ret);
  42. __owur int run_tests(const char *test_prog_name);
  43. void set_test_title(const char *title);