aboutsummaryrefslogtreecommitdiffstats
path: root/Source/testing/rsa_test.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-24 10:40:10 +0000
committerMartin Willi <martin@strongswan.org>2006-04-24 10:40:10 +0000
commita8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0 (patch)
tree91b37f9344855204233631622d5b13a7056084b1 /Source/testing/rsa_test.c
parentfcfeb3220fbd4e25b0ac63c541c18e8ae1f30766 (diff)
downloadstrongswan-a8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0.tar.bz2
strongswan-a8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0.tar.xz
- identification_t supports now almost all id types
- x509 certificates work with identification_t now - fixes here, fixes there
Diffstat (limited to 'Source/testing/rsa_test.c')
-rw-r--r--Source/testing/rsa_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/testing/rsa_test.c b/Source/testing/rsa_test.c
index a3ab3e4ea..696901531 100644
--- a/Source/testing/rsa_test.c
+++ b/Source/testing/rsa_test.c
@@ -26,7 +26,7 @@
#include <daemon.h>
#include <utils/logger.h>
-#include <crypto/certificate.h>
+#include <crypto/x509.h>
char private_key_buffer[] = {
0x30,0x82,0x04,0xa2,0x02,0x00,0x02,0x82,0x01,0x00,0x6f,0x25,0x74,0x63,0x2a,0x2f,
@@ -205,7 +205,7 @@ void test_rsa(protected_tester_t *tester)
/* key loading */
private_key = rsa_private_key_create_from_file("alice.der", NULL);
tester->assert_true(tester, private_key != NULL, "loading private key from file");
- certificate = certificate_create_from_file("alice-cert.der");
+ certificate = x509_create_from_file("alice-cert.der");
tester->assert_true(tester, public_key != NULL, "loading certificate from file");
public_key = certificate->get_public_key(certificate);
tester->assert_true(tester, public_key != NULL, "loading public key from certificate");