diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-22 14:11:25 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-22 16:44:46 +0200 |
commit | 0fcacb0b849ca23bf659618be06caacfbf732855 (patch) | |
tree | 4b5322dfb37c5a566b1fd5e5bb6029d406f35d3c /tests/utils.h | |
parent | f1b64b5f37b8922cc66283458699d7fcf666171d (diff) | |
download | gnutls-0fcacb0b849ca23bf659618be06caacfbf732855.tar.gz |
tests: added checks for OCSP response file supporttests-improvement
That is, check the usability of the APIs for setting and using
an ocsp response. This improves and makes more generic the
test suite API and test_cli_serv() in particular.
Diffstat (limited to 'tests/utils.h')
-rw-r--r-- | tests/utils.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/utils.h b/tests/utils.h index 3978ee87f6..fbd6b7a160 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -70,8 +70,13 @@ extern void binprint(const void *str, size_t len); int disable_system_calls(void); void sec_sleep(int sec); -void test_cli_serv(gnutls_certificate_credentials_t server_cred, const char *prio, - const gnutls_datum_t *ca_cert, const char *host); +typedef void callback_func(gnutls_session_t, void *priv); +void test_cli_serv(gnutls_certificate_credentials_t server_cred, + gnutls_certificate_credentials_t client_cred, + const char *prio, const char *host, + void *priv, + callback_func *client_cb, + callback_func *server_cb); #define TMPNAME_SIZE 128 char *get_tmpname(char s[TMPNAME_SIZE]); |