aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/keyid2sql.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/keyid2sql.c')
-rw-r--r--scripts/keyid2sql.c10
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;
}