diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-04 13:46:09 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-04 13:46:09 +0200 |
commit | 7daf5226b74e14a6e0f1a888b0be26f3d246f9f8 (patch) | |
tree | 6436de2e84e7a677ecfb83db4bf44766cc273d9f /scripts/keyid2sql.c | |
parent | 7d1b0304467bc668b592ccd6680fd9615efbb5b2 (diff) | |
download | strongswan-7daf5226b74e14a6e0f1a888b0be26f3d246f9f8.tar.bz2 strongswan-7daf5226b74e14a6e0f1a888b0be26f3d246f9f8.tar.xz |
removed trailing spaces ([[:space:]]+$)
Diffstat (limited to 'scripts/keyid2sql.c')
-rw-r--r-- | scripts/keyid2sql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/keyid2sql.c b/scripts/keyid2sql.c index 2ec011950..bf952170d 100644 --- a/scripts/keyid2sql.c +++ b/scripts/keyid2sql.c @@ -15,7 +15,7 @@ int main(int argc, char *argv[]) chunk_t chunk; char buf[8096]; int read, n; - + library_init(NULL); lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, PLUGINS); atexit(library_deinit); @@ -26,9 +26,9 @@ int main(int argc, char *argv[]) fprintf(stderr, "reading key failed.\n"); return -1; } - + chunk = chunk_create(buf, read); - + private = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, BUILD_BLOB_PEM, chunk_clone(chunk), BUILD_END); @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) private->destroy(private); return 0; } - + public = lib->creds->create(lib->creds, CRED_PUBLIC_KEY, KEY_ANY, BUILD_BLOB_PEM, chunk_clone(chunk), BUILD_END); @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) public->destroy(public); return 0; } - + fprintf(stderr, "unable to parse input key.\n"); return -1; } |