summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile2
-rw-r--r--tests/openpgp_test.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 84505c242d..7549a80369 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,7 +1,7 @@
LIBS=`../lib/libgnutls-config --libs` -lgcrypt
LIBS2=`../lib/libgnutls-config --libs` `../libextra/libgnutls-extra-config --libs` -lgcrypt -lopencdk
CC=gcc
-CFLAGS=-O2 -I../libextra/ -I../ -I../lib/ `../lib/libgnutls-config --cflags`
+CFLAGS=-O2 -I../libextra/ -I../ -I../lib/ `../lib/libgnutls-config --cflags` -I../lib/minitasn1/
all: x509test opgptest
diff --git a/tests/openpgp_test.c b/tests/openpgp_test.c
index 96b935285a..7bb00f5e2a 100644
--- a/tests/openpgp_test.c
+++ b/tests/openpgp_test.c
@@ -55,14 +55,14 @@ main( int argc, char ** argv )
gnutls_certificate_credentials ctx;
gnutls_datum dat, xml, pk;
gnutls_openpgp_name uid;
- gnutls_private_key * pkey;
+ gnutls_privkey * pkey;
gnutls_cert * cert;
unsigned char fpr[20], keyid[8];
char *s, *t;
size_t fprlen = 0;
int rc, nbits = 0, i;
- rc = gnutls_certificate_allocate_cred( &ctx );
+ rc = gnutls_certificate_allocate_credentials( &ctx );
assert( rc == 0 );
s = "../src/openpgp/cli_ring.gpg";
@@ -152,7 +152,7 @@ main( int argc, char ** argv )
#endif
_gnutls_free_datum( &dat );
- gnutls_certificate_free_cred( ctx );
+ gnutls_certificate_free_credentials( ctx );
return 0;
}