/
githubmirror
/
xmlsec
Обзор
Документация
Войти
/
githubmirror
/
xmlsec
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
apps/unit_tests/xmlsec_unit_tests.h
57 строк
1 KB
lsh123
(xmlsec-core) Added tests to the X509 serial parser (#1211)
27 июн 2026, 18:57
Не верифицирован
27 июн 2026, 18:57
a400a7a
Код
Авторство
О чём код?
/** * XML Security Library (http://www.aleksey.com/xmlsec). * * This is free software; see the Copyright file in the source distribution for precise wording. * * Copyright (C) 2002-2026 Aleksey Sanin <aleksey@aleksey.com>. All Rights Reserved. */ /** * @brief XML Security Library unit tests helpers. */ #ifndef __XMLSEC_UNIT_TESTS_H__ #define __XMLSEC_UNIT_TESTS_H__ #define XMLSEC_PRIVATE 1 #include <xmlsec/xmlsec.h> #include <xmlsec/errors.h> #include "../src/cast_helpers.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* helper functions */ void testGroupStart(const char * name); int testGroupFinished(void); void testStart(const char * name); void testFinishedSuccess(void); void testFinishedFailure(void); #ifdef __GNUC__ void testLog(const char* fmt, ...) __attribute__ ((format (printf, 1, 2))); #else /* __GNUC__ */ void testLog(const char* fmt, ...); #endif /* __GNUC__ */ /* tests */ int test_base64(void); int test_bn(void); int test_buffer(void); int test_list(void); int test_transform_helpers(void); int test_xmlSecX509EscapedStringRead(void); int test_xmlSecX509AttrValueStringRead(void); int test_xmlSecX509NameRead(void); int test_xmlSecX509SerialNumberRead(void); int test_nodeset(void); int test_xmltree(void); int test_templates(void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __XMLSEC_UNIT_TESTS_H__ */