summaryrefslogtreecommitdiff
path: root/tests/null_retrieve_function.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/null_retrieve_function.c')
-rw-r--r--tests/null_retrieve_function.c37
1 files changed, 14 insertions, 23 deletions
diff --git a/tests/null_retrieve_function.c b/tests/null_retrieve_function.c
index eb156e9646..7a51e9ee8b 100644
--- a/tests/null_retrieve_function.c
+++ b/tests/null_retrieve_function.c
@@ -19,7 +19,7 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <stdio.h>
@@ -35,33 +35,26 @@
* function.
*/
-static int cert_cb1(gnutls_session_t session,
- const gnutls_datum_t * req_ca_rdn,
- int nreqs,
- const gnutls_pk_algorithm_t * pk_algos,
- int pk_algos_length, gnutls_retr2_st * retr)
+static int cert_cb1(gnutls_session_t session, const gnutls_datum_t *req_ca_rdn,
+ int nreqs, const gnutls_pk_algorithm_t *pk_algos,
+ int pk_algos_length, gnutls_retr2_st *retr)
{
return -1;
}
-static int cert_cb2(gnutls_session_t session,
- const gnutls_datum_t * req_ca_rdn,
- int nreqs,
- const gnutls_pk_algorithm_t * pk_algos,
- int pk_algos_length,
- gnutls_pcert_st ** pcert,
- unsigned int *pcert_length, gnutls_privkey_t * privkey)
+static int cert_cb2(gnutls_session_t session, const gnutls_datum_t *req_ca_rdn,
+ int nreqs, const gnutls_pk_algorithm_t *pk_algos,
+ int pk_algos_length, gnutls_pcert_st **pcert,
+ unsigned int *pcert_length, gnutls_privkey_t *privkey)
{
return -1;
}
static int cert_cb3(gnutls_session_t session,
const struct gnutls_cert_retr_st *info,
- gnutls_pcert_st ** certs,
- unsigned int *pcert_length,
- gnutls_ocsp_data_st ** ocsp,
- unsigned int *ocsp_length,
- gnutls_privkey_t * privkey, unsigned int *flags)
+ gnutls_pcert_st **certs, unsigned int *pcert_length,
+ gnutls_ocsp_data_st **ocsp, unsigned int *ocsp_length,
+ gnutls_privkey_t *privkey, unsigned int *flags)
{
return -1;
}
@@ -87,11 +80,9 @@ void doit(void)
gnutls_certificate_allocate_credentials(&x509_cred);
- ret =
- gnutls_certificate_set_x509_key_mem(x509_cred,
- &server_ca3_localhost_cert_chain,
- &server_ca3_key,
- GNUTLS_X509_FMT_PEM);
+ ret = gnutls_certificate_set_x509_key_mem(
+ x509_cred, &server_ca3_localhost_cert_chain, &server_ca3_key,
+ GNUTLS_X509_FMT_PEM);
if (ret < 0) {
fail("error in error code\n");
exit(1);