That is, ensure that the registered cipher is called at least
once in the program. That is, to make this test fail if the registration
API ever become deprecated/no-op.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
#include "ex-session-info.c"
#include "ex-x509-info.c"
-pid_t child;
+static pid_t child;
static void tls_log_func(int level, const char *str)
{
int enc;
};
+static unsigned aes_init = 0;
+
static int
myaes_init(gnutls_cipher_algorithm_t algorithm, void **_ctx, int enc)
{
}
((struct myaes_ctx *) (*_ctx))->enc = enc;
+ aes_init = 1;
return 0;
}
start("NORMAL:-CIPHER-ALL:+AES-128-CBC:-VERS-ALL:+VERS-TLS1.1");
start("NORMAL:-CIPHER-ALL:+AES-128-CBC:-VERS-ALL:+VERS-TLS1.2");
+ assert(aes_init != 0);
+
gnutls_global_deinit();
}