diff options
author | Martin Willi <martin@strongswan.org> | 2009-08-13 15:39:29 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-08-26 11:23:49 +0200 |
commit | 2b7e085deac956660827f23e339eae797a3326ea (patch) | |
tree | eca724952c25b7e5f3b40b8bc072e35430902bcd /scripts/pubkey_speed.c | |
parent | cbb62e8f4c48c795a3cf63899048845ee3bfe75c (diff) | |
download | strongswan-2b7e085deac956660827f23e339eae797a3326ea.tar.bz2 strongswan-2b7e085deac956660827f23e339eae797a3326ea.tar.xz |
updated pubkey_speed test to use pem plugin
Diffstat (limited to 'scripts/pubkey_speed.c')
-rw-r--r-- | scripts/pubkey_speed.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/pubkey_speed.c b/scripts/pubkey_speed.c index 86a4e105b..120ca858c 100644 --- a/scripts/pubkey_speed.c +++ b/scripts/pubkey_speed.c @@ -4,7 +4,6 @@ #include <library.h> #include <debug.h> #include <credentials/keys/private_key.h> -#include <asn1/pem.h> void start_timing(struct timespec *start) { @@ -70,14 +69,9 @@ int main(int argc, char *argv[]) pos += read; keydata.len += read; } - if (pem_to_bin(&keydata, chunk_empty, NULL) != SUCCESS) - { - printf("converting PEM private key failed.\n"); - exit(1); - } private = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, type, - BUILD_BLOB_ASN1_DER, keydata, BUILD_END); + BUILD_BLOB_PEM, keydata, BUILD_END); if (!private) { printf("parsing private key failed.\n"); |