# Those modules are common to lib/ and src/.
common_modules="
-alloca array-list attribute byteswap c-ctype c-strcase canonicalize-lgpl explicit_bzero fopen-gnu func getline gettext-h gettimeofday hash-pjw-bare arpa_inet inet_ntop inet_pton intprops linkedhash-list lock memmem-simple minmax netdb netinet_in pathmax rbtree-list read-file secure_getenv setsockopt snprintf stdint stpcpy strcase strdup-posix strndup strtok_r strverscmp sys_socket sys_stat sys_types threadlib time_r tls unistd valgrind-tests vasprintf verify vsnprintf xalloc-oversized
+alloca array-list assert-h attribute byteswap c-ctype c-strcase canonicalize-lgpl explicit_bzero fopen-gnu func getline gettext-h gettimeofday hash-pjw-bare arpa_inet inet_ntop inet_pton intprops linkedhash-list lock memmem-simple minmax netdb netinet_in pathmax rbtree-list read-file secure_getenv setsockopt snprintf stdint stpcpy strcase strdup-posix strndup strtok_r strverscmp sys_socket sys_stat sys_types threadlib time_r tls unistd valgrind-tests vasprintf vsnprintf xalloc-oversized
"
gnulib_modules="
$common_modules dirname-lgpl extensions gendocs havelib ldd lib-msvc-compat lib-symbol-versions maintainer-makefile manywarnings pmccabe2html warnings
#include "ext/server_cert_type.h"
#include "ext/compress_certificate.h"
#include "intprops.h"
-#include "verify.h"
-verify(GNUTLS_EXTENSION_MAX < GNUTLS_EXTENSION_MAX_VALUE);
-verify(GNUTLS_EXTENSION_MAX < MAX_EXT_TYPES);
+static_assert(GNUTLS_EXTENSION_MAX < GNUTLS_EXTENSION_MAX_VALUE);
+static_assert(GNUTLS_EXTENSION_MAX < MAX_EXT_TYPES);
/* we must provide at least 16 extensions for users to register;
* increase GNUTLS_EXTENSION_MAX_VALUE, MAX_EXT_TYPES and used_exts
* type if this fails
*/
-verify(GNUTLS_EXTENSION_MAX_VALUE - GNUTLS_EXTENSION_MAX >= 16);
+static_assert(GNUTLS_EXTENSION_MAX_VALUE - GNUTLS_EXTENSION_MAX >= 16);
/* MAX_EXT_TYPES must fit in a single byte, to generate random
* permutation at once.
*/
-verify(MAX_EXT_TYPES <= UINT8_MAX);
+static_assert(MAX_EXT_TYPES <= UINT8_MAX);
static void unset_ext_data(gnutls_session_t session,
const struct hello_ext_entry_st *, unsigned idx);
#include "minmax.h"
#include "gl_array_list.h"
#include "gl_rbtree_list.h"
-#include "verify.h"
#include <assert.h>
#include <string.h>
((san) <= GNUTLS_SAN_MAX ? (san) - SAN_MIN : \
GNUTLS_SAN_MAX + (san) - SAN_OTHERNAME_MIN)
-verify(SAN_BIT(SAN_OTHERNAME_MIN) > SAN_BIT(GNUTLS_SAN_MAX));
-verify(SAN_BIT(SAN_OTHERNAME_MAX) < CHAR_BIT * sizeof(san_flags_t));
+static_assert(SAN_BIT(SAN_OTHERNAME_MIN) > SAN_BIT(GNUTLS_SAN_MAX));
+static_assert(SAN_BIT(SAN_OTHERNAME_MAX) < CHAR_BIT * sizeof(san_flags_t));
#define SAN_FLAG(san) (1UL << SAN_BIT(san))